Delete a network policy by slug or full reference. It must not be bound to any access token.
curl --request DELETE \
--url https://a.s2.dev/v1/network-policies/{id} \
--header 'Authorization: Bearer <token>'{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}network policies
Delete a network policy by slug or full reference. It must not be bound to any access token.
Delete an S2 network policy by slug or full reference.
DELETE
/
network-policies
/
{id}
Delete a network policy by slug or full reference. It must not be bound to any access token.
curl --request DELETE \
--url https://a.s2.dev/v1/network-policies/{id} \
--header 'Authorization: Bearer <token>'{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Network policy concepts
Review how rules are evaluated, how tokens are bound, and how to debug denied requests.
A policy cannot be deleted while an access token is bound to it. The request fails with
network_policy_in_use; revoke those tokens first.
