Policy >
Networking
>
Connectivity
>
Segments
>
Segments
Force delete infra segment
Force delete bypasses validations during segment deletion. This may result in an inconsistent connectivity.
Request:
Method:
DELETE
URI Path(s):
/policy/api/v1/infra/segments/{segment-id}?force=true
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/segments/{segment-id}?force=true
Request Headers:
n/a
Query Parameters:
SegmentDeleteRequestParameters
+
SegmentDeleteRequestParameters
(
schema
)
Name
Description
Type
Notes
cascade
Flag to specify whether to delete related segment ports
When the flag is true, all segment ports associated with this segment are detached and deleted.
boolean
Default: "False"
Request Body:
n/a
Example Request:
DELETE https://<policy-mgr>/policy/api/v1/infra/segments/web-tier
Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a
Example Response:
200 OK
Required Permissions:
crud
Feature:
policy_segment
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable