Deletes a specified enterprise code.

Background information

Before you call this operation, take note of the following rules:

  • You cannot delete default enterprise codes.

    To delete a default enterprise code, change it to a custom enterprise code and then delete it. For more information, see UpdateEnterpriseCode.

  • You cannot delete enterprise codes that are associated with a Smart Access Gateway (SAG) APP instance.

    To delete an enterprise code that is associated with an SAG APP instance, associate the SAG APP instance with another enterprise code, and then delete the enterprise code. For more information, see UpdateSmartAGEnterpriseCode.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteEnterpriseCode

The operation that you want to perform.

Set the value to DeleteEnterpriseCode.

EnterpriseCode String Yes 12***

The enterprise code that you want to delete.

RegionId String Yes cn-shanghai

The ID of the region to which the enterprise code belongs.

You can call the DescribeRegions operation to query the most recent region list.

ClientToken String No 02fb3da4****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Response parameters

Parameter Type Example Description
RequestId String 9DD3DFB2-A9BF-4BEE-9542-661411A9851E

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteEnterpriseCode
&EnterpriseCode=12***
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<DeleteEnterpriseCodeResponse>
  <RequestId>9DD3DFB2-A9BF-4BEE-9542-661411A9851E</RequestId>
</DeleteEnterpriseCodeResponse>

JSON format

{
	"RequestId": "9DD3DFB2-A9BF-4BEE-9542-661411A9851E"
}

Error codes

HttpCode Error code Error message Description
400 EnterpriseCode.BeingUsed The specified enterprise code is being used. The error message returned because the specified enterprise code is in use.
400 EnterpriseCode.DeleteLimit The specified default enterprise code cannot be deleted. The error message returned because the specified enterprise code is a default one and you cannot delete it.
400 EnterpriseCode.NotExist The specified enterprise code does not exist. The error message returned because the specified enterprise code does not exist.

For a list of error codes, visit the API Error Center.