# Delete a membership

To delete a membership, send a `DELETE` request to the `/api/memberships/:id` endpoint, where `id` is the id of the membership that you want to delete.

## Request

**DELETE** <https://provisioning.commercelayer.io/ap&#x69;**/memberships/:id>\*\*

### Example

{% tabs %}
{% tab title="Request" %}
The following request tries to delete the membership identified by the ID "xYZkjABcde":

```sh
curl -g -X DELETE \
  'https://provisioning.commercelayer.io/api/memberships/xYZkjABcde' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer {{your_access_token}}'
```

{% endtab %}

{% tab title="Response" %}
On success, the API responds with a `204 No Content` status code.
{% endtab %}
{% endtabs %}
