PDF Editing Issues

How to Batch Remove Specific Pages in Adobe Acrobat

Camila MilosovichCamila Milosovich Nov 3, 2026 870 views

Question details

The user needs a method to batch process multiple PDF files stored in different folders to automatically remove either the first or second page and save the processed files with distinct filenames.

How to Batch Remove Specific Pages in Adobe Acrobat
Product
Adobe Acrobat Pro
Device & OS
not provided
Scenario
Removing a specific page (page 1 or page 2) from a large group of PDFs automatically without manually opening each file, while ensuring the original files are not overwritten.
Observed behavior
Manual page deletion is too time-consuming for large folders of PDFs, requiring an automated batch scripting workflow to handle the removal and renaming process efficiently.
Before you start

Ensure you have Adobe Acrobat Pro installed, as the Action Wizard feature required for batch processing and running JavaScript commands is not available in the standard free version of Acrobat Reader.

Solution 1Recommended

Automate Page Deletion Using Acrobat Pro Action Wizard

Create a custom Action in Acrobat Pro using a simple JavaScript command to target and delete specific pages across an entire folder of PDF files automatically.

The Action Wizard in Adobe Acrobat Pro allows you to string together multiple commands, including custom JavaScript execution and specific save options, into a single automated workflow. This is ideal for processing dozens or hundreds of files in a specific folder.

1
Open the Action Wizard

Launch Adobe Acrobat Pro. Go to the 'Tools' tab at the top and click on 'Action Wizard' to open the tool panel.

2
Create a New Action

Click on 'New Action' in the Action Wizard toolbar. The Create New Action dialog box will appear on your screen.

3
Add the Execute JavaScript Command

In the left pane under 'Choose tools to add', expand the 'More Tools' section. Select 'Execute JavaScript' and click the '+' icon in the center to add it to the 'Action steps to show' pane on the right. Uncheck the 'Prompt User' checkbox so the script runs silently.

4
Input the Deletion Script

Click 'Specify Settings' under the Execute JavaScript step you just added. To delete page 1, type 'this.deletePages(0,0);'. To delete page 2, type 'this.deletePages(1,1);'. Click 'OK' to save the script.

5
Configure Save Options

From the left pane, expand 'Save & Export' and add 'Save' to your action steps. Click 'Specify Settings' under Save, choose 'Add to original file names', and type a fixed suffix (like '-processed') so you do not overwrite your original files. Click 'OK'.

6
Save and Run the Action

Click the 'Save' button at the bottom, give your action a descriptive name (e.g., 'Delete Page 1'), and click 'Save'. You can now click on your new Action from the Action List, select the folder containing your PDFs, and click 'Start' to batch process them.

Automate Page Deletion Using Acrobat Pro Action Wizard
JavaScript Array Indexing: In Adobe Acrobat's JavaScript engine, page numbers are zero-based. This means that Page 1 is represented by index 0, Page 2 is represented by index 1, and so forth.
Free Microsoft Office alternative

Edit and Manage PDFs Easily with WPS Office

If you are looking for an affordable and user-friendly alternative to complex and expensive software like Adobe Acrobat Pro or Microsoft Office, WPS Office offers a powerful, lightweight suite. With intuitive tools to manage PDF pages, alongside seamless compatibility with standard document formats, it simplifies your daily workflow without the steep learning curve.

  1. 1. Open PDF in WPS: Launch WPS Office and open your target PDF document.
  2. 2. Navigate to Page Management: Click on the 'Page' tab in the top ribbon menu to view all pages as thumbnail images.
  3. 3. Delete Pages: Select the page or pages you wish to remove and click the 'Delete' icon to remove them instantly, then save your file.
Visually extract, insert, or delete specific pages in your PDFs using an intuitive drag-and-drop Page interface.Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint) and standard Adobe PDF files.Lightweight application design ensures fast performance without consuming massive system resources.Provides premium PDF editing features at a fraction of the cost of standard professional PDF editors.
microsoft office alternative - wps office

Frequently Asked Questions

Will running the Action Wizard overwrite my original PDF files?

Not if you configure the Save settings properly. By adding a 'Save' step in the Action Wizard and specifying a suffix under 'Add to original file names', the modified files will be saved as new documents, leaving your originals intact.

Can I use the Action Wizard to batch delete pages in the free Acrobat Reader?

No. The Action Wizard and the ability to execute custom batch JavaScript are premium features exclusive to Adobe Acrobat Pro. Users of the free Acrobat Reader cannot automate page deletions.

How do I delete a range of pages using the JavaScript action?

You can modify the parameters in the 'this.deletePages(start, end);' script. Because the index is zero-based, deleting pages 3 through 5 would require the script 'this.deletePages(2,4);'.

Why didn't the batch script work on some of my PDF files?

The script may fail if the PDF file is password-protected or restricted against editing. You must remove security restrictions from the PDFs before running the Action Wizard script on them.