Skip to content

Kirby 5.0.2

$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

Parent class

Kirby\Cms\Pages