Inputs
Field | Type | Required | Description |
---|---|---|---|
Spreadsheet URL/ID | Text | Yes | Google Sheets document link or ID containing the sheet to delete |
Sheet Name | Text | Yes | Name of the sheet/tab to be deleted |
Outputs
Output | Type | Description |
---|---|---|
Sheet Name | Text | Name of the deleted sheet (confirmation) |
Spreadsheet ID | Text | ID of the parent spreadsheet where the sheet was deleted |
Credits
This node consumes 1 credit per execution.How It Works
This node connects to your Google Spreadsheet and permanently removes the specified sheet tab along with all its data. This action cannot be undone, so use with caution.Safety Considerations
⚠️ Important Warning:- Deletion is permanent and cannot be undone
- All data in the sheet will be lost forever
- Consider backing up important data before deletion
- Test with non-critical sheets first
- Always verify the sheet name before deletion
- Use conditional logic to prevent accidental deletions
- Consider using Clear Data instead of deletion for temporary cleanup
- Implement confirmation steps in your workflow
Common Use Cases
Spreadsheet Maintenance
- Remove Outdated Data: Delete old monthly or quarterly reports
- Clean Test Sheets: Remove sheets created during workflow testing
- Manage Sheet Limits: Stay within Google Sheets’ sheet count limits
Workflow Cleanup
- Temporary Sheet Removal: Delete sheets used for intermediate processing
- Failed Process Cleanup: Remove sheets from incomplete or failed workflows
- Duplicate Removal: Clean up accidentally created duplicate sheets
Data Management
- Archive Management: Remove sheets after data has been archived elsewhere
- Project Completion: Delete project-specific sheets when projects end
- Template Cleanup: Remove example or template sheets from production spreadsheets
Integration Tips
With Conditional Logic:- Use If Router nodes to add safety checks before deletion
- Implement date-based conditions for automatic cleanup
- Add confirmation steps for critical deletions
- Get list of sheet names first to verify targets
- Use loops to delete multiple sheets safely
- Filter sheet names to avoid deleting important sheets
- Create backup copies before bulk deletions
- Log deleted sheet names for audit trails
- Implement rollback procedures where possible
Error Handling
Common Scenarios: Sheet Not Found:- Verify the sheet name exactly matches (case-sensitive)
- Check if the sheet has already been deleted
- Ensure you’re targeting the correct spreadsheet
- Google Sheets requires at least one sheet to remain
- Create a new sheet before deleting the last one
- Consider renaming instead of deleting if it’s the only sheet
- Ensure you have edit access to the spreadsheet
- Verify the spreadsheet URL/ID is correct
- Check that your Google Sheets connection has proper permissions
Troubleshooting
Prevention Tips:- Always double-check sheet names before deletion
- Use preview modes in your workflow to verify targets
- Implement logging to track deletions
- Test deletion logic with non-critical sheets first
- Check Google Sheets revision history for recent deletions
- Look for backup copies in Google Drive trash
- Contact Google Support for potential recovery assistance (limited cases)