Homepage

admin_authorization_policy_delete

Last edit: Nov 10, 2026

Deletes (soft-deletes) an authorization policy found by physical_file_path (or
the deprecated id), detaches it from all pages using it, and returns it.
Raises an error when the policy does not exist; policies stored in a private
module directory cannot be deleted

admin_authorization_policy_delete(
  id: ID
  physical_file_path: String
): AuthorizationPolicy

Arguments

id (ID)

Deprecated, use physical_file_path. Id of the policy to delete

physical_file_path (String)

physical_file_path of the policy to delete; takes precedence over id

Type

AuthorizationPolicy

Authorization policy (app/authorization_policies): a Liquid check that restricts
access to the pages it is attached to. When several policies are attached, all must pass

Questions?

We are always happy to help with any questions you may have.

contact us