Skip to main content
REST API reference
A newer release of this product is available.

Delete an EBR policy

Deletes a specified Event Based Retention (EBR) policy to remove its configuration from the system. This operation is typically used when you need to retire an outdated or unnecessary retention policy.

HTTP method and endpoint

DELETE /storage/snaplock/event-retention/policies/{policy.name}

Introduced in

ONTAP 9.7

  • snaplock event-retention policy delete

Example

Delete the specified Event Based Retention policy "policy_name":

DELETE "/api/storage/snaplock/event-retention/policies/{policy.name}"

Parameters

Name Type In Required Description

policy.name

string

path

True

Name of the retention policy

Response

Status: 200, Ok

Error

Status: Default

ONTAP Error Response codes

Error code Description

13763280

Only a user with security login role "vsadmin-snaplock" is allowed to perform this operation.

Name Type Description

error

returned_error

Example error
{
  "error": {
    "arguments": [
      {
        "code": "string",
        "message": "string"
      }
    ],
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  }
}

Definitions

See Definitions

error_arguments

Name Type Description

code

string

Argument code

message

string

Message argument

returned_error

Name Type Description

arguments

array[error_arguments]

Message arguments

code

string

Error code

message

string

Error message

target

string

The target parameter that caused the error.