# Delete pages from a PDF (or a folder of them)

> Markdown version of https://stella.sh/how/pdf-excel/delete-pages-from-pdf for agents and LLMs.
> Remove pages from a PDF in Preview or the free PDF24 Creator, or let Stella (stella.sh) drop the advert and terms pages from twelve bills at once and keep the rest.

For one file, open it in Preview on a Mac (View, Thumbnails, select the pages, press Delete, export under a new name) or in the free PDF24 Creator on Windows. When many files each have unwanted pages in different places, that's one file at a time. Stella (stella.sh) decides which pages to drop by what's on them, across a whole folder, and saves cleaned copies.

- Checked: 14 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 14 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: Twelve cleaned bills in about 1¼ minutes. Checked afterwards against an answer key written before the run: all 12 copies hold exactly the bill pages in their original order, with every advert and terms page gone and every call list kept, and no original bill deleted or changed. The phone company and its bills are fictitious, made for this run. The work is sped up 3×.

Video (46 s): https://stella.sh/media/proofs/pdf-excel/delete-pages-from-pdf/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A Phone bills folder holds 12 monthly bills padded with adverts and terms pages.
- 0:01 The prompt: make cleaned copies with just the bill pages, keep the call lists, leave the originals alone.
- 0:15 Stella replies that the copies will go in a new folder with the same names, and it will point out pages that were hard to call.
- 0:20 Sorting 57 pages across 12 files, sped up 3×.
- 0:31 Done: 30 pages kept, 27 dropped, one judgement call explained, originals untouched.

What Stella does:

1. Opens all 12 phone bills in the Phone bills folder: 4 to 7 pages each, with the bill, call lists, adverts and a terms and conditions page in a different place every month
2. Sorts every page by what it is, not by keywords: a call list that ends “Full terms and conditions are at …” stays, the actual terms page goes
3. Saves a cleaned copy of each bill in a new folder, Phone bills (cleaned), with the same file names
4. Reports the totals (30 pages kept, 27 dropped) and the one judgement call: July's summary page carries a one-line offer, and it was kept as part of the bill
5. Leaves the originals exactly as they were

## The prompt to paste

```text
My phone bills are PDFs in a folder called Phone bills in my Documents. Each one has pages of adverts and the terms and conditions mixed in with the actual bill. Make a cleaned-up copy of every bill with just the bill pages (keep the call lists), and leave the originals alone.
```

## Remove the pages yourself

1. **On a Mac: Preview.** Open the PDF and choose View, Thumbnails. Click the pages you don't want (Command-click to pick several) and press Delete. Then File, Export as PDF under a new name, so the original keeps every page.
2. **On Windows: PDF24 Creator.** Install the free PDF24 Creator, which works offline, and open its Remove pages tool. Click the pages to drop, or type their numbers, and save. Repeat for each file.
3. **Print only the pages you want.** Any PDF viewer can do it in a pinch: File, Print, enter the pages to keep (for example 1-2, 4), and print to PDF (Save as PDF on a Mac, Microsoft Print to PDF on Windows). Links and searchable text may not survive this route.
4. **Many files: look before deleting.** When the unwanted pages move around from file to file, check each one in thumbnail view. Don't go by a word like “terms”: a page that matters can mention it in a footer.

## Where Stella stops

- Stella decides what counts as an advert or small print from what's on each page, and says what it dropped and any page it was unsure about. Tell it if something it removed should stay.
- Scanned bills (pictures of pages) are read with OCR first, which is slower.
- The text of each page goes to the AI model you use in Stella so it can sort them. The new PDFs are made on your computer.
- Recorded on Linux with free Python PDF tools; on a Mac or Windows PC Stella uses the same kind of tool.

## Questions

**How do I delete a page from a PDF on a Mac?**
In Preview, View, Thumbnails, select the page and press Delete, then save or export. Export under a new name if you want to keep the original.

**Can I take pages out into their own file instead of deleting them?**
Yes: see [extract pages from a PDF](https://stella.sh/how/pdf-excel/extract-pages-from-pdf), or [split a PDF into multiple files](https://stella.sh/how/pdf-excel/split-pdf-into-multiple-files) to break it into parts.

**How do I remove blank pages from a scan?**
[Reorder PDF pages](https://stella.sh/how/pdf-excel/reorder-pdf-pages) covers a double-sided scan with blank backs, including checking faint pages before removing them.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Add, delete and move PDF pages in Preview](https://support.apple.com/guide/preview/prvw11793/mac), [PDF24: remove PDF pages (also in the free offline PDF24 Creator)](https://tools.pdf24.org/en/remove-pdf-pages).

## Related problems

- [Extract pages from a PDF into their own file](https://stella.sh/how/pdf-excel/extract-pages-from-pdf.md)
- [Split a PDF into multiple files (one per document)](https://stella.sh/how/pdf-excel/split-pdf-into-multiple-files.md)
- [Reorder the pages of a double-sided scan and remove the blanks](https://stella.sh/how/pdf-excel/reorder-pdf-pages.md)
- [Merge PDF files into one, in the right order](https://stella.sh/how/pdf-excel/merge-pdf-files.md)
- [Convert bank statement PDFs to Excel](https://stella.sh/how/pdf-excel/bank-statement-pdf-to-excel.md)
- [Reduce PDF file size when it's too large to email](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
