Updated on 2025-11-25 GMT+08:00

Deleting an Event Subscription

Function

This API is used to delete an event subscription.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/event-subs/{subscription_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. For how to obtain it, see Obtaining a Project ID.

Constraints

N/A

Range

The value can contain 1 to 64 characters. Only letters and digits are allowed.

Default Value

N/A

subscription_id

Yes

String

Definition

Subscription ID.

Constraints

N/A

Range

The value can contain 1 to 64 characters. Only letters and digits are allowed.

Default Value

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token. You can obtain it by calling the IAM API for obtaining a user token. The user token is the value of X-Subject-Token in the response header. For details, see Token-based Authentication.

Constraints

N/A

Range

The value can contain 1 to 32,768 characters.

Default Value

N/A

Response Parameters

Status code: 204

Normal response

None

Example Requests

Delete an event subscription.

DELETE https://{Endpoint}/v1/{project_id}/event-subs/{subscription_id}

Example Responses

None

Status Codes

Status Code

Description

204

Normal response

Error Codes

See Error Codes.