.delete table policy retention command

Applies to: ✅ Azure Data Explorer

Delete a table's retention policy. The retention policy controls the mechanism that automatically removes data from tables or materialized views. It's used to remove data whose relevance is age-based. The retention policy can be configured for a specific table or materialized view, or for an entire database. The policy then applies to all tables in the database that don't override it.

Permissions

You must have at least Table Admin permissions to run this command.

Syntax

.delete table TableName policy retention

Learn more about syntax conventions.

Parameters

Name Type Required Description
TableName string ✔️ The name of the table for which to delete the policy.

Example

The following command deletes the retention policy at the table level.

.delete table Table1 policy retention