$pages->delete()
Deletes the pages with the given IDs if they exist in the collection
$pages->delete(array $ids): void
Parameters
Name | Type | Default |
---|---|---|
$idsrequired | array |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\Exception |
If not all pages could be deleted |