Homepage

admin_pages_delete_all

Last edit: Nov 10, 2026

Deletes all pages matching the filter and returns their number. Matched pages
stop being served right away; they are then destroyed in a background job
unless sync is true. Use with care, there is no undo

admin_pages_delete_all(
  filter: PageFilterInput!
  sync: Boolean
): ObjectCount!

Arguments

filter (PageFilterInput)

Conditions the deleted pages must match

sync (Boolean)

When true, the deletion finishes before the mutation returns instead of in a background job

Type

ObjectCount

Result of a bulk operation

Questions?

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

contact us