sys.sp_delete_backup
Deletes all snapshots and the backup file that comprise a snapshot backup set from the specified database.
What changes
- Input
- Not stated in the Microsoft summary.
- Output or change
- Deletes all snapshots and the backup file that comprise a snapshot backup set from the specified database.
Syntax at a glance
sys.sp_delete_backup
[ @backup_url = ] N'backup_url'
[ , [ @database_name = ] { N'database_name' | NULL } ]
[ ; ]
Work example
Deletes all snapshots and the backup file that comprise a snapshot backup set from the specified database.
Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.
Check your work What can this procedure change or start, and what permission does it need?
Open Microsoft Learn for full syntax, permissions, and details for your version.