Skip to main content

Delete Rows from Excel - Cleanup for Make

What this module does

PDF4me Delete Rows from Excel removes single rows, multiple rows, and ranges from Excel worksheets using simple comma-separated range syntax (e.g., "1-5,10,15-20") within Make scenarios. Uses safe bottom-to-top processing to avoid index shifting errors. Perfect for report cleanup, data retention compliance, template preparation, and client distribution workflows. Works with Google Drive, Dropbox, SharePoint, and HTTP sources.

Mix single rows and ranges in one Row Ranges string

The Row Ranges field accepts a comma-separated combination of single rows and ranges in a single operation. For example, "1-3,10,15-20" deletes rows 1 through 3, row 10, and rows 15 through 20 in one call. All row numbers use 1-based indexing where row 1 is the first row in the worksheet.

Bottom-to-top processing prevents row number shifting

The module automatically processes deletions from the highest row number to the lowest, regardless of the order you specify in Row Ranges. This prevents index shifting, if you deleted row 3 first, all subsequent row numbers would shift down by one. You never need to pre-sort your range string; the module handles the correct deletion order internally.

Build dynamic row range strings from Make variables

Row Ranges accepts dynamically constructed strings from Make scenario variables. For data retention workflows, query your database to find which rows contain data older than a threshold, then build the range string (e.g., "5-150") in a Set Variable step and map it to Row Ranges. This enables fully automated, data-driven row deletion without hardcoding row numbers.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog

Authenticating Your API Request

To access the PDF4me Web API through Make, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Make scenarios and PDF4me's Excel row deletion services.

Delete Rows Excel Make

Key Features

  • Flexible Range Syntax: Single rows, ranges, or mixed combinations
  • Multiple Range Support: Process many ranges at once
  • Safe Deletion Order: Bottom-to-top to prevent shifting issues
  • Worksheet Targeting: Name or default first sheet

Parameters

Complete list of parameters for the Delete Rows from Excel module. Configure these parameters to control row deletion behavior.

Important: Parameters marked with an asterisk (***) are required and must be provided for the module to function correctly. Rows are processed bottom-to-top to avoid index shifting.

ParameterTypeDescriptionExample
File Name***StringExcel Document Name
• Filename with .xlsx or .xls extension
• Used for output identification
• Supports dynamic naming from scenario variables
data.xlsx
Document***BufferExcel File Content
• Map from previous module (Drive/Dropbox/HTTP)
• Binary Excel document for row deletion
• Workbook structure preserved except deleted rows
[Buffer]
Row Ranges***StringDeletion Range Specification
• Comma-separated list of row numbers and ranges
Single rows: "5,10,15" deletes rows 5, 10, and 15
Ranges: "1-5" deletes rows 1 through 5 inclusive
Mixed: "1-5,10,15-20" combines ranges and singles
1-based indexing: Row 1 is the first row
• Processed bottom-to-top automatically
1-5,10,15-20
Worksheet NameStringTarget Worksheet Name
• Name of worksheet to delete rows from
• Default: First worksheet if not specified
• Must match worksheet name exactly (case-sensitive)
Sheet1

Output

Table View

ParameterTypeDescription
NameStringOutput Excel filename
Doc DataBufferExcel with rows deleted

Scenario Examples

The PDF4me Delete Rows from Excel module in Make provides comprehensive scenario templates designed for real-world data cleanup needs:

Automated Report Row Cleanup Workflow

Prepare client-ready reports by removing internal rows automatically:

Complete Scenario Steps:

  1. Trigger: Weekly report generation completion event
  2. Get Internal Report: Retrieve full report with notes from Google Drive
  3. Identify Internal Rows: Rows 1-3 (title/internal notes), row 25 (calculation notes)
  4. Delete Internal Rows: Remove "1-3,25" using comma-separated syntax
  5. Preserve Data Rows: Deletion processed bottom-to-top (row 25 first, then 1-3)
  6. Target Correct Sheet: Worksheet Name = "Report" for specific targeting
  7. Upload Clean Report: Save client-ready version to Google Drive client folder
  8. Email Client: Send notification with clean report download link
  9. Archive Original: Store full internal version in archive folder
  10. Log Cleanup: Record cleanup event with timestamp and row counts

Business Benefits:

  • Cleans 52 weekly reports automatically per year
  • Removes internal notes and calculations before client distribution
  • Bottom-to-top processing prevents row number shifting errors
  • Eliminates manual row deletion saving 10 minutes per report

Industry Use Cases & Applications

  • 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

Get Help