All Products
Search
Document Center

API Gateway:DeleteSource

Last Updated:Dec 26, 2025

Deletes a service source.

Debug

You can call this operation directly in OpenAPI Explorer. This eliminates the need to calculate signatures. After a successful call, OpenAPI Explorer automatically generates sample SDK code.

Authorization information

The following table describes the authorization information for this operation. You can add this information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or RAM role the permission to call this operation.

  • Operation: The specific permission.
  • Access level: The access level of each operation. Valid values are Write, Read, and List.
  • Resource type: The resource type that the operation is authorized to access. The details are as follows:
    • An asterisk ( * ) indicates a required resource type.
    • If an operation does not support resource-level authorization, the value is All Resources.
  • Condition key: The condition key defined by the cloud service.
  • Associated operation: The other permissions required to successfully call this operation. The caller must also have the permissions for the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
apig:DeleteSourcenone
*Source
acs:apig:{#regionId}:{#accountId}:source/{#SourceId}
    None
None

Request syntax

<p>DELETE /v1/sources/{sourceId} HTTP/1.1</p>

Request parameters

NameTypeRequiredDescriptionExample
sourceIdstringNo

The source ID.

src-crdddallhtgtriah***

Response parameters

NameTypeDescriptionExample
object

Response schema

requestIdstring

The request ID.

C67DED2B-F19B-5BEC-88C1-D6EB854CD0D4
codestring

The response status code.

Ok
messagestring

The response message.

success

Examples

Sample response for a successful request

The response is in JSON format.

{
  "requestId": "C67DED2B-F19B-5BEC-88C1-D6EB854CD0D4",
  "code": "Ok",
  "message": "success"
}

Error codes

For a list of error codes, see the Error center.

Change history

Change timeChange summaryOperation
2025-12-11New OpenAPI.View change details