# removepdfpages: Remove Pages from PDF

> removepdfpages (Remove Pages from PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/removepdfpages, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

Deletes the given pages from a PDF and returns the rest. At least one page must remain.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/removepdfpages`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/removepdfpages

## Parameters

- `file` (file, optional) – File: The PDF. Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the PDF. Either file or fileUrl.
- `pages` (string, required) – Pages: Pages to remove, e.g. 2-3,7 (first page = 1).

## Example: Remove Pages from PDF

```bash
curl -X POST 'https://api.1001fx.com/files/removepdfpages' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
