Help Center/ Enterprise Switch/ API Reference/ Enterprise Switch/ Deleting an Enterprise Switch
Updated on 2025-12-04 GMT+08:00

Deleting an Enterprise Switch

Function

This API is used to delete an enterprise switch if you no longer need it.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

esw:instance:delete

Write

-

-

-

-

URI

DELETE /v3/{project_id}/l2cg/instances/{instance_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

instance_id

Yes

String

  • Definition: Unique ID of an enterprise switch.

  • Constraints: The value is in the UUID format with hyphens (-).

  • Range: N/A

  • Default value: N/A

project_id

Yes

String

  • Definition: ID of the project to which the enterprise switch belongs.

  • Constraints: N/A

  • Range: N/A

  • Default value: N/A

Request Parameters

None

Response Parameters

Status code: 204

The DELETE operation is successful. For more status codes, see Status Codes.

None

Example Requests

DELETE https://{endpoint}/v3/b2782e6708b8475c993e6064bc456bf8/l2cg/instances/1800017b-941d-4c08-8509-40c6d102a662

Example Responses

None

Status Codes

Status Code

Description

204

The DELETE operation is successful. For more status codes, see Status Codes.

Error Codes

See Error Codes.