Skip to content

retention policy

retention policy delete

retention policy delete <PROJECT_NAME_OR_ID> [OPTIONS]

Delete a retention policy.

Warning

The user needs permission to update the project metadata in addition to managing its retention policy, due to a critical API bug that will break a project if the project metadata is not updated after its retention policy is deleted.

Arguments

PROJECT_NAME_OR_ID
Name or ID of the project to use. Prefix with 'id:' to specify an ID.
Type: text

Options

--id <POLICY_ID>
Retention policy ID. Overrides positional argument.
Type: integer

--force
Force deletion without confirmation.
Type: boolean (flag)
Default: False


retention policy get

retention policy get <PROJECT_NAME_OR_ID> [OPTIONS]

Fetch a retention policy.

Arguments

PROJECT_NAME_OR_ID
Name or ID of the project to use. Prefix with 'id:' to specify an ID.
Type: text

Options

--id <POLICY_ID>
Retention policy ID. Overrides positional argument.
Type: integer


retention policy id

retention policy id <PROJECT_NAME_OR_ID>

Get the retention policy ID for a project.

Arguments

PROJECT_NAME_OR_ID
Name or ID of the project to use. Prefix with 'id:' to specify an ID.
Type: text