> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionAbstractUnsubscribeEvent

# Abstract\_UnsubscribeEvent (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

## Function Syntax

```
long Abstract_UnsubscribeEvent(consumedEventRef * event);
```

### Description

Unsubscribes for a service event if abstract binding is used. Note that this is more **low-level**; usually it's more convenient to call [consumedEventRef::AbstractReleaseEvent](../Methods/CAPLfunctionConsumedEventRefAbstractReleaseEvent.md) on the event.

### Parameters

* **event**: Event which shall be unsubscribed.

### Return Values

* **0**: Success
* **1**: Endpoint is not simulated
* **2**: Communication object does not use abstract binding
* **\< 0**: Other error, e.g., event variable is not initialized

### Example

```plaintext theme={null}
Abstract_UnsubscribeEvent(MirrorAdjustment.consumerSide[0,0].Position);
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [Abstract\_SubscribeEvent](CAPLfunctionAbstractSubscribeEvent.md) • [SOMEIP\_UnsubscribeEventGroup](CAPLfunctionSOMEIPUnsubscribeEventGroup.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.