Skip to main content

Delete Access Policy

Request

Allows a user to delete an access policy identified by either the accessPolicyId or the accessPolicyErn parameter. The access policy is deleted from the project identified by the accessPolicyErn if provided, else in the project that owns the access policy being used to invoke the operation. The project must be disabled and not have any grants in order for it to be deleted. Access to this operation is controlled by the access policy being accessed.

The auth token's access policy must allow action:use/deleteAccessPolicy.

Security
bearerAuth
Path
projectIdProjectId (string) or * (string)required
One of:

Globally unique identifier of a project.

string(ProjectId)
accessPolicyIdAccessPolicyId (string) or Ern (string)required
One of:

Uniquely identifies an access policy within a project.

string(AccessPolicyId)
Bodyapplication/jsonrequired
lastRevstring, [ 1 .. 256 ] characters(LastResourceRev)required

An opaque string that represents the expected revision of a given resource. This is provided when a resource is updated so that if a concurrent update has occurred since the resource was read, then the collision will be detected.

Example:"abc123"
Payload
{ "lastRev": "abc123" }

Responses

Success

Response
No content
Was this page helpful?