--- title: draftOrderBulkDelete - GraphQL Admin description: Deletes multiple draft orders. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/draftorderbulkdelete md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/draftorderbulkdelete.md --- # draft​Order​Bulk​Delete mutation Requires `write_draft_orders` access scope. Also: The user must have access to delete multiple draft orders. Deletes multiple draft orders. ## Arguments * ids [\[ID!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) The IDs of the draft orders to delete. * saved​Search​Id [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) The ID of the draft order saved search for filtering draft orders on. * search [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The conditions for filtering draft orders on. See the detailed [search syntax](https://shopify.dev/api/usage/search-syntax). *** ## Draft​Order​Bulk​Delete​Payload returns * job [Job](https://shopify.dev/docs/api/admin-graphql/latest/objects/Job) The asynchronous job for deleting the draft orders. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### draftOrderBulkDelete reference ## Mutation Reference ```graphql mutation draftOrderBulkDelete($search: String, $savedSearchId: ID, $ids: [ID!]) { draftOrderBulkDelete(search: $search, savedSearchId: $savedSearchId, ids: $ids) { job { # Job fields } userErrors { field message } } } ``` ## Input ```json { "search": "", "savedSearchId": "gid://shopify//10079785100", "ids": [ "gid://shopify//10079785100" ] } ``` ##### Variables ``` { "search": "", "savedSearchId": "gid://shopify//10079785100", "ids": [ "gid://shopify//10079785100" ] } ```