> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doviconvert.com/llms.txt
> Use this file to discover all available pages before exploring further.

# cleanup

> Remove backup files created during conversion

## Synopsis

```shellscript theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-macchiato"}}
dovi_convert cleanup [options]
```

## Description

Scans for and removes `*.mkv.bak.dovi_convert` backup files in the current directory. Includes orphan protection — only deletes backups where the corresponding converted file exists in the same directory.

## Options

| Option        | Short | Description                                            |
| ------------- | ----- | ------------------------------------------------------ |
| `--recursive` | `-r`  | Scan recursively through subdirectories                |
| `--yes`       | `-y`  | Skip confirmation prompt                               |
| `--debug`     | —     | Generate `dovi_convert_debug.log` with detailed output |

<Callout icon="triangle-exclamation" iconType="solid" color="#e78284">
  This is irreversible. Your original Profile 7 files are gone permanently unless you have other backups. Only use this if storage space is a concern and you're confident in the conversion results.
</Callout>

## Examples

**Clean up current directory:**

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-macchiato"}}
dovi_convert cleanup
```

**Clean up recursively:**

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-macchiato"}}
dovi_convert cleanup --recursive
dovi_convert cleanup -r
```

**Auto-confirm cleanup:**

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-macchiato"}}
dovi_convert cleanup --yes
dovi_convert cleanup -y
```

**Recursive cleanup without prompts:**

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-macchiato"}}
dovi_convert cleanup --recursive --yes
dovi_convert cleanup -r -y
```

## Orphan Protection

The cleanup command has a safety check: it only deletes backups where the corresponding converted file exists in the same directory as the original.

**Example:**

* Backup exists: `movie.mkv.bak.dovi_convert`
* Converted file missing: `movie.mkv` (deleted or moved)
* **Result:** Backup is kept

This prevents data loss if you've deleted a converted file due to quality issues.

## See Also

* [convert](convert) — Convert files or directories
