--- title: discountsAllocatorFunctionUnregister - GraphQL Admin description: Unregisters a discounts allocator function. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionUnregister md: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionUnregister.md --- # discounts​Allocator​Function​Unregister mutation Requires `write_discounts_allocator_functions` access scope. Unregisters a discounts allocator function. ## Arguments * function​Extension​Id [String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) required The function extension id of the discounts allocator function. *** ## Discounts​Allocator​Function​Unregister​Payload returns * success [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Boolean representing whether the discounts allocator function was unregistered. * user​Errors [\[Discounts​Allocator​Function​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountsAllocatorFunctionUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### discountsAllocatorFunctionUnregister reference ## Mutation Reference ```graphql mutation discountsAllocatorFunctionUnregister($functionExtensionId: String!) { discountsAllocatorFunctionUnregister(functionExtensionId: $functionExtensionId) { success userErrors { field message } } } ``` ## Input ##### Variables ```json { "functionExtensionId": "" } ```