Delete a policy

This API will delete a policy and its associated metadata in the namespace. If the given policy doesn’t exists, it will throw a message “Policy doesn’t exists.”
Only Namespace admins with “metadata_change” permission can access this route.

METHOD: PUT
ROUTE: /metadata/policy/delete
Headers:
{
“Authorization”: “Bearer < NAMESPACE_ADMIN_API_KEY>”
}
Request payload:

{
"data": {
"policy_name": "Testing_Default_Policy"
}
}

Response structure:

{
"data": {
"message": "Policy Testing_Default_Policy deleted successfully."
},
"success": true,
"error": {
"message": ""
}
}

 

Updated on February 18, 2025
What are your feelings

© All Rights Reserved 2023 | Protecto