Delete Access Control Rule
DELETE
/{namespace}/{principalType}/{principalId}/access-control-rules/{ruleId}Delete an access control rule.
Requires a signed user/session or the existing authenticated client flow. The anonymous DCR delegated device profile cannot invoke this operation.
Required scope
Any authenticated access token
Returns
200
Access control rule deleted successfully
No response body.
Errors
400Invalid request payload
Check the request fields and any validation details, then correct the payload.
412 PRECONDITION_FAILEDThe If-Match etag does not match the current access control rule; re-read the rule and retry
Inspect the returned code and family and follow the error handling guide.
500Internal server error
Retry with backoff only when the operation is safe to repeat. Include the error code when reporting persistent failures.