> ## 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.

# CAPLfunctionSDRemoveConsumer

# SD\_RemoveConsumer (obsolete)

[CAPL Functions](https://notevil.mintlify.site/CAPLfunctions.md) » [Communication Objects](../CAPLfunctionsCOOverview.md) » SD\_RemoveConsumer

**Valid for**: CANoe DE

## Function Syntax

```c theme={null}
void SD_RemoveConsumer(serviceConsumerRef * consumer);
```

## Description

Removes a consumer endpoint from a service. You may call this to react to timeouts, or unannouncements from a real consumer, or to remove a simulated consumer endpoint.

## Parameters

* **consumer**: Consumer endpoint.

## Return Values

* **0**: Success
* **1**: The service does not allow dynamic endpoint changes
* **\< 0**: Other error, e.g. variable not initialized

## Example

```c theme={null}
SD_RemoveConsumer(newConsumer);
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [SD\_RemoveProvider](CAPLfunctionSDRemoveProvider.md) • [SD\_AddConsumer](CAPLfunctionSDAddConsumer.md)


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