On this page
Guides
Delete Pages
This example shows how to delete a page:
swift
var indexSet = IndexSet()
indexSet.insert(0)
// Delete the first page of the document.
document?.removePage(at: indexSet)
objective-c
NSMutableIndexSet *indexSet = [NSMutableIndexSet indexSet];
[indexSet addIndex:0];
// Delete the first page of the document.
[document removePageAtIndexSet:indexSet];