How can I delete multiple workflows in a easy way?

I need delete a bunch of flows, but it’s too hard open one by one and delete, there’s a way to delete in batch mode?

Information on your n8n setup

  • latest
  • Database: Postgres
  • Own
  • Docker inside k8s

You can use API
Go to /api/v1/docs/ to see available endpoint. Example link.

You probably want to use [GET] [/workflows] to retrieve all WF, then filter as needed and use [DELETE] [/workflows/{id}]
You will need API key, what you will get from Settings/n8n API

Hardly suggest to make backup before, so if you delete too much you have point to back

2 Likes

Thanks Shirobachi, I didn’t knew about this option, it worked :smiley:

1 Like