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?
Just wanted to test you .
1 Like