Deletions & the safeguard
This is the most important page in the docs. Read it before you point the daemon at data you care about.
Deletions propagate
Section titled “Deletions propagate”Once a file has been synced, deleting it on one side propagates the deletion to the other on the next reconcile. That is the point of two-way sync — but it means a deletion is a real action the engine will carry out for you, in both directions:
- Delete a file locally → the engine removes it from Proton Drive by moving it to Proton’s Trash, where it stays recoverable until you empty the trash.
- Delete a file (or folder) on Proton Drive → the engine moves your local copy to
your desktop’s Trash (
~/.local/share/Trash), where your file manager can restore it to its original path. Folder deletions are recursive: the whole subtree travels together, and it is restored together.
Both directions are recoverable by default. If you would rather local deletions free the
disk space immediately, set local_delete_mode = "permanent" — see
Permanent deletion below.

The two directions are never presented as the same action. The permanent one is the only one that asks you to type the word.
The two directions land in two different trashes — Proton’s for the remote copy, your desktop’s for the local one — because that is where each side’s own restore lives.
Permanent deletion (opt-in)
Section titled “Permanent deletion (opt-in)”local_delete_mode decides what happens to your local copy once a deletion goes ahead:
| Value | What a local deletion does |
|---|---|
"trash" (default) |
Moves the file to ~/.local/share/Trash, with the .trashinfo record your file manager’s Restore uses to put it back where it was. |
"permanent" |
Removes it from disk immediately, recursive for folders. Frees the space at once; there is no undo. |
local_delete_mode = "permanent"Or pick Delete them permanently on the desktop app’s Settings → Deletions tab. In
permanent mode the Deletions screen restores its full warning treatment: the card is
labelled Permanent · this computer, tinted destructively, and approving it requires you
to type the word DELETE.
This is a separate question from whether a deletion waits for you. deletion_policy
decides that, and neither setting changes the other’s meaning — see
Delete approval.
The delete/edit safeguard
Section titled “The delete/edit safeguard”A deletion is only propagated when the other side has not changed since the last sync. The surviving edit always wins over the delete:
- You delete a file locally, but it was edited on Proton Drive since the last sync → the remote edit is restored to your local folder rather than the remote copy being deleted. To make the deletion stick, delete it again once both sides are back in sync.
- You edit a file locally, but it was deleted on Proton Drive → your local edit is preserved rather than erased.
This safeguard lives in the pure planner and applies regardless of the delete-approval guard below.
The delete-approval guard
Section titled “The delete-approval guard”On top of the safeguard, a delete-approval guard withholds destructive actions until you approve them. It is on by default and directional, so you approve each direction independently. This is a full topic of its own — see Delete approval.
In short: the first time a synced file’s deletion would propagate, the daemon withholds
it and lists it under proton-sync pending (or the app’s Deletions screen). Nothing is
deleted until you approve it.
What “purge” is (and why it’s safe)
Section titled “What “purge” is (and why it’s safe)”You’ll see a purge action in plans. A purge is index-only cleanup: when a file is
already gone from both sides, the engine drops its stale baseline row. No user data is
touched, so purge is never gated by the approval guard, even though the dry-run counts
it under destructive_actions for display.
Non-destructive on unknown digests
Section titled “Non-destructive on unknown digests”If a remote file exists but Proton Drive exposes no usable SHA-1 for it, the planner treats the comparison as unknown and refuses to make a destructive decision about that path. It would rather do nothing than delete or overwrite on a guess.
Practical rules
Section titled “Practical rules”- Test with disposable folders and backups until you trust the behavior.
- Dry-run before every first sync of a new pair, and after changing roots — check
destructive_actions. - Leave delete-approval on while you’re learning; relax it per folder only where you understand the consequences.
- Deleting a synced folder on Proton Drive is destructive and recursive locally — be deliberate about it.
- Delete approval — configure and use the guard.
- Dry-run preview — read a plan before it runs.
- Conflicts — when both sides change, nothing is lost.