Delete Rows From Excel Using Zapier
Delete Rows is a Zapier action by PDF4me that removes single rows, ranges, or mixed combinations from a named Excel worksheet using range syntax like "1-5,10,15-20". Rows are processed bottom-to-top automatically, which prevents the index-shifting errors that break formulas when rows are removed in the wrong order.
How Do I Authenticate My API Request?
To access the PDF4me Web API through Zapier, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Zapier workflows and PDF4me's Excel row deletion services.

Important Facts You Should Not Miss
Parameters
Complete list of parameters for the Delete Rows action. Parameter names match the Zapier configuration UI.
Required in the Zapier UI: File, Worksheet Name, and Row Ranges. File Name is optional.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Required | Excel file content, mapped from a previous step using full file content. | [2. File from Step 2] |
| File Name | Conditional | Filename with .xlsx or .xls extension, used for output naming. | add_header_sample_file.xlsx |
| Worksheet Name | Required | Exact, case-sensitive name of the worksheet to delete rows from. | Sheet5 |
| Row Ranges | Required | Comma-separated row numbers and ranges. 1-based indexing, processed bottom-to-top automatically. | 1-20 |
Row range syntax examples
Single rows: "5,10,15" deletes rows 5, 10, and 15.
Range: "1-20" deletes rows 1 through 20.
Mixed: "1-3,25" deletes rows 1 through 3 and row 25, for example internal notes plus a calculation row.
What Fields Does the Output Include?
The action returns the modified Excel file plus tracking metadata. This output shape is shared across Delete Rows, Add Rows, Update Rows, and other PDF4me Excel actions in Zapier.
| Field | Type | What it contains |
|---|---|---|
Job Id | String | Unique identifier for the Zapier job execution. |
File Url | URL | API endpoint to download the processed Excel file. Map this to the next step, Drive, Dropbox, or another PDF4me Excel action. |
Alternate File Url | URL | Alternate download URL with the filename in the path. |
File Name | String | Base filename without extension. |
File Extension | String | File extension of the output, .xlsx or .xls. |
Full File Name | String | Complete filename including extension. |
Document Id | String | Unique identifier for the processed document. |
File Size | Number | Size of the output file in bytes. |
Doc Text | String | Extracted text, typically empty for Excel row-deletion output. |
Typical Setups
Workflow ExamplesCommon Zapier workflow patterns using Delete Rows.
- A weekly report generation step completes and retrieves the full internal report from Google Drive.
- Delete Rows runs with Worksheet Name set to Report and Row Ranges set to 1-3,25, removing title/internal-note rows and a calculation row.
- The cleaned report is uploaded to the client-facing Drive folder and the original is kept in an internal archive.
- A scheduled monthly trigger retrieves the transaction log from SharePoint.
- A prior step identifies which row numbers hold data past the retention window, and Delete Rows runs with Worksheet Name set to Transactions and Row Ranges built dynamically from that range.
- The updated log is uploaded back to SharePoint and a compliance summary is emailed to the retention owner.
- A template is marked ready for distribution in a content-management tool, and its master version is retrieved.
- Delete Rows runs with Worksheet Name set to Sheet1 and Row Ranges set to 2-10, removing sample data while leaving the header row and formulas intact.
- The cleaned template is uploaded to the shared template library.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Delete Rows |
| File | [mapped from previous step, full content] |
| File Name | add_header_sample_file.xlsx |
| Worksheet Name | Sheet5 |
| Row Ranges | 1-20 |
Frequently Asked Questions
Related Actions
Same Task on Other Platforms
Industry Use Cases & Applications
- Finance & Accounting
- Sales & Marketing
- Human Resources
- Operations
- Client Report Cleanup: Remove internal note rows (1-3) and calculation rows before external distribution
- Data Retention Compliance: Delete transaction rows older than 7 years per retention policy
- Audit Trail Trimming: Remove test/sample entries from audit logs before archival
- Budget Template Preparation: Delete previous year's data rows from budget templates for new cycle
- Reconciliation Cleanup: Remove resolved discrepancy rows from monthly reconciliation workbooks
- Campaign Result Cleanup: Delete test campaign rows before final performance reporting
- CRM Export Trimming: Remove inactive/deleted lead rows from CRM exports
- Pricing Sheet Updates: Delete outdated product rows from pricing sheets for clients
- Sales Report Finalization: Remove internal calculation rows before management distribution
- Forecast Cleanup: Delete historical forecast rows beyond 12-month rolling window
- Template Sample Removal: Delete example employee rows from HR templates before distribution
- Terminated Employee Cleanup: Remove separated employee rows from active roster spreadsheets
- Training Log Trimming: Delete completed training session rows older than 3 years
- Payroll Archive Preparation: Remove test payroll rows before quarterly payroll archival
- Benefits Enrollment Cleanup: Delete previous year's enrollment rows from new enrollment templates
- Production Log Retention: Delete production run rows older than retention period
- Equipment Log Trimming: Remove old maintenance event rows from equipment logs
- Quality Control Cleanup: Delete test/calibration rows from QC inspection logs
- Inventory History Trimming: Remove transaction rows older than 24 months from inventory logs
- Shift Report Finalization: Delete internal supervisor note rows before operations review distribution