What does $force do in $page->delete($force = false)

What does force do in $page->delete($force = false)?
The docs aren’t very clear on this: https://getkirby.com/docs/cheatsheet/page/delete

The force option forces the page to be deleted even if there are subpages.

Edit: Just updated the docs.

1 Like

… at https://github.com/getkirby/getkirby.com/blob/master/content/1-docs/9-cheatsheet/0-page/0-children/cheatsheet.item.txt instead of https://github.com/getkirby/getkirby.com/blob/master/content/1-docs/9-cheatsheet/0-page/0-delete/cheatsheet.item.txt

Why there? :sweat_smile:

Just wanted to test you :joy:.

1 Like