admin_page_delete
Last edit: Nov 10, 2026
Deletes (soft-deletes) a page found by physical_file_path (or the deprecated
id) and returns it. Raises an error when no such page exists; pages stored in
a private module directory cannot be deleted
admin_page_delete(
id: ID
physical_file_path: String
): Page
Arguments
id (ID)
Deprecated, use physical_file_path. Id of the page to delete
physical_file_path (String)
physical_file_path of the page to delete; takes precedence over id
Type
Page
Page (app/views/pages): Liquid rendered for requests to the URL defined by its slug