Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dbdock.xyz/llms.txt

Use this file to discover all available pages before exploring further.

npx dbdock delete [options]

Modes

Default mode — DBdock shows a picker.
npx dbdock delete

Options

OptionDescription
--key <id>Delete a specific backup by ID
--allDelete every backup (requires confirmation)

Difference from cleanup

delete is manual and ad-hoc. cleanup applies the retention policy defined in your config.

Use delete when...

  • You want to remove specific bad/test backups
  • You’re decommissioning a project
  • You need to nuke everything immediately

Use cleanup when...

  • You want automatic retention
  • You want to apply maxBackups / maxAgeDays rules
  • You want a dry run first

Safety

  • Interactive mode always shows what will be deleted before confirmation
  • --all requires typing the database name as confirmation
  • Deletes happen one at a time with logging — if one fails, the rest continue