Modulify

Delete all database backups

clear_database_backups

Permanently deletes every database backup of a site in one call, leaving the live database of the site untouched.

It is the same as Delete all database backups in the editor. All of the archives are destroyed and cannot be recovered, so the site is left with no copy of its rows from any earlier moment, and the daily backup only begins building that history again from its next run. Deleting them does not hand any manual backup slot back.

An archive still being exported is left alone. The response counts removed, the bytes freed, failed and pending. A failed one could not be reached and is still there, so call it again, and pending counts the archives still being exported that were left alone, which stay in the list and read ready or failed in list_database_backups when they finish.

It needs the Delete projects permission in the workspace. The tool tells the client to read the whole list with list_database_backups and confirm it with you before calling it, and never to call it to tidy up on its own initiative. See Delete a database backup.

Inputs

Input Type Required Description
projectId string Yes The site whose database backups should all be deleted.