Block 1 - On form submission
- Type / Role
- n8n-nodes-base.formTrigger - formTrigger
- Config choices
- Version 2.2
This workflow is provided as-is. Please review and test before using in production.
Description: Effortlessly delete unused or inactive workflows from your n8n instance while automatically backing them up as .json files into your Google Drive. Keep your instance clean, fast, an...
n8n-nodes-base.formtrigger, n8n-nodes-base.telegram, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.n8n, n8n-nodes-base.code
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Arlin Perez.
Original n8n.io sourceEffortlessly delete unused or inactive workflows from your n8n instance while automatically backing them up as .json files into your Google Drive. Keep your instance clean, fast, and organized โ no more clutter slowing you down. This workflow is ideal for users managing large self-hosted n8n setups, or anyone who wants to maintain optimal performance while preserving full workflow backups.
๐ Form โ Collects the full workflow URL from the user ๐ n8n Node (Get Workflow) โ Uses the URL to fetch workflow details ๐ฆ Code Node ("JSON to File") โ Converts the workflow JSON into a properly formatted .json file with UTF-8 encoding, ready to be uploaded to Google Drive. โ๏ธ Google Drive Upload โ Uploads the .json backup file to your selected Drive folder ๐๏ธ n8n Node (Delete Workflow) โ Deletes the workflow from your instance using its ID ๐ฌ Telegram Notification โ Notifies you that the workflow was backed up and deleted, showing title, ID, and date
โ Add your Google Drive credentials โ Add your Telegram Bot credentials
๐งพ In the โJSON to Fileโ Code node, no additional setup is required โ it automatically converts the workflow JSON into a downloadable .json file using the correct encoding and filename format.
โ๏ธ In the Google Drive node: Binary Property: data Folder ID: your target folder in Google Drive
๐ Create a new credential for the n8n node using: API Key: your personal n8n API key Base URL: your full n8n instance API path (e.g. https://your-n8n-instance.com/api/v1) โ๏ธ Use this credential in both the Get Workflow and Delete Workflow n8n nodes
๐ฌ In the Telegram node, use this message template: ๐๏ธ Workflow "{{ $json.name }}" (ID: {{ $json.id }}) was backed up to Google Drive and deleted from n8n. ๐ {{ $now }}
๐ Important: This workflow backs up the entire workflow data to Google Drive. Please be careful with the permissions of your Google Drive folder and avoid sharing it publicly, as the backups may contain sensitive information. Ensuring proper security and access control is essential to protect your data.
๐ Activate the workflow and you're ready to safely back up and remove workflows from your n8n instance
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Backup and delete workflows to Google Drive with n8n API and form trigger |
|---|---|
| Complexity | intermediate |
| Nodes | 13 |
| Categories | DevOps |
| Author | Arlin Perez |
| Published | 31 Jul 2025 |
Use the JSON export at /data/workflows/6751/6751.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Description: Effortlessly delete unused or inactive workflows from your n8n instance while automatically backing them up as .json files into your Google Drive. Keep your instance clean, fast, an...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.