Admin
Delete backup
Permanently delete a database backup file by filename.
Authorization
session better-auth.session_token<token>
Better Auth session cookie
In: cookie
Path Parameters
filename*string
Backup filename
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X DELETE "http://localhost:3000/api/v1/admin/backups/string" \ -H "Content-Type: application/json" \ -d '{}'Empty
{
"defined": true,
"code": "BAD_REQUEST",
"status": 400,
"message": "Failed to delete backup",
"data": {
"code": "BACKUP_DELETE_FAILED"
}
}{
"defined": true,
"code": "NOT_FOUND",
"status": 404,
"message": "Backup not found",
"data": {
"code": "BACKUP_NOT_FOUND"
}
}