Skip to main content

Delete Unwanted Pages

OrganizeDelete Unwanted Pages

The Delete Unwanted Pages API removes specified pages from a PDF. You send the PDF (docContent Base64, docName), pageNumbers (e.g. 2, 1,3,5, 2-4), and optionally async. The API returns the PDF without those pages. Use the tester below to try it; more details are in the sections that follow.

Try the Delete Unwanted Pages API

Quick reference

Endpoint: POST /api/v2/DeletePages · Required: api-key, docContent, docName, pageNumbers

Try it live

Use the form below to send your API key, PDF (Base64), and page numbers or ranges to delete. The response is the PDF with those pages removed. No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Delete Unwanted Pages?

This endpoint removes specified pages from a PDF. You provide pageNumbers: single page (e.g. 2), multiple pages (e.g. 1,3,5), or a range (e.g. 2-4). The API returns a new PDF without those pages. Use it when you need to drop specific pages (e.g. cover, appendix) from a document.

Page selection format

  • Single page: e.g. 2
  • Multiple pages: e.g. 1,3,5
  • Page range: e.g. 2-4
Best for

Use when removing specific pages by number. For removing blank pages by criteria use Delete Blank Pages; for keeping only certain pages use Extract Pages.

Prerequisites

Before using this endpoint, make sure you have:

Response Format

The API returns a PDF file with the specified pages removed.

Get Help