Skill 2.3.4

Configure soft delete for blobs and containers

Key Concepts

Blob soft delete keeps a deleted blob, and the previous state of an overwritten blob as a soft-deleted snapshot when versioning is not used, for a retention period of 1 to 365 days. Soft-deleted blobs are listed with Show deleted blobs and restored with Undelete. Container soft delete keeps a deleted container and its contents for 1 to 365 days and restores it with its original name, if no new container with that name exists.

Both settings are on the account's Data protection page, and new accounts created in the portal enable them with a seven-day retention by default. Soft delete does not protect against deleting the whole storage account; a CanNotDelete resource lock does. When blob versioning is enabled, deleting a blob creates a previous version, and soft delete protects the versions themselves. Soft-deleted data is billed at the same rate as active data.