Learn how to easily restore deleted workflows in n8n with step‑by‑step methods to recover lost automations quickly and safely.

Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
The short, direct answer is: n8n cannot restore a deleted workflow from inside the UI. Once you delete a workflow, it is gone unless you have an external backup — for example: database snapshots, filesystem backups (for file-based DB), or Git versioning if you exported workflows manually. Restoring means you must restore the underlying database or re-import an exported workflow JSON file.
In n8n, all workflows are stored in its internal database. Depending on how your instance was installed, this database is usually:
When you press “Delete” on a workflow in the UI, n8n removes that workflow record from its database. There is no recycle bin, no undo button, and no built‑in version history. So the only real way to restore it is to restore the DB state from before deletion.
If you already have some form of backup, you can recover the deleted workflow. Here are the valid real‑world options:
If your n8n uses PostgreSQL, you might have a nightly dump. You can extract just the workflow you need instead of restoring the whole DB. This is a real, working command example:
// list contents of your backup file
pg_restore -l backup.dump
// extract only the workflow_entity table into a SQL file
pg_restore -t workflow_entity -f workflow.sql backup.dump
// apply the restored table (careful: this overwrites!)
psql -d n8n -f workflow.sql
After this, restart n8n and your deleted workflow should reappear.
Then the workflow is truly gone. n8n does not store versions, does not keep deleted items, and cannot recover anything without a database copy. This is a limitation of current n8n architecture.
The only exception: if you deleted it in a browser tab but hadn’t refreshed, sometimes the old JSON is still in your browser’s devtools “Network” logs. That’s a rare lucky case, but it’s not a reliable method.
In real production setups, backup automation is non‑negotiable. Without backups, n8n cannot recover deleted workflows.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.