title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | dev_langs | |
---|---|---|---|---|---|---|---|---|---|---|
sp_delete_backup_file_snapshot (Transact-SQL) |
Deletes a specified backup snapshot from the specified database. |
MashaMSFT |
mathoma |
randolphwest |
03/07/2025 |
sql |
system-objects |
reference |
|
[!INCLUDE sqlserver2016]
Deletes a specified backup snapshot from the specified database. Use this system stored procedure in conjunction with the sys.fn_db_backup_file_snapshots
system function to identify and delete orphaned backup snapshots. For more information, see File-Snapshot Backups for Database Files in Azure.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sys.sp_delete_backup_file_snapshot
[ @db_name = ] N'database_name'
, [ @snapshot_url = ] N'<snapshot_url>'
[!INCLUDE extended-stored-procedures]
The name of the database containing the snapshot to be deleted, provided as a Unicode string.
The URL of the snapshot to be deleted, provided as a Unicode string.
Requires ALTER ANY DATABASE permission.