--- title: DelegateAccessTokenDestroyUserErrorCode - GraphQL Admin description: >- Possible error codes that can be returned by `DelegateAccessTokenDestroyUserError`. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/DelegateAccessTokenDestroyUserErrorCode md: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/DelegateAccessTokenDestroyUserErrorCode.md --- # Delegate​Access​Token​Destroy​User​Error​Code enum Possible error codes that can be returned by `DelegateAccessTokenDestroyUserError`. ## Valid values * ACCESS\_​DENIED Access denied. * ACCESS\_​TOKEN\_​NOT\_​FOUND Access token not found. * CAN\_​ONLY\_​DELETE\_​DELEGATE\_​TOKENS Cannot delete parent access token. * PERSISTENCE\_​FAILED Persistence failed. *** ## Fields * [Delegate​Access​Token​Destroy​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DelegateAccessTokenDestroyUserError#field-DelegateAccessTokenDestroyUserError.fields.code) OBJECT An error that occurs during the execution of `DelegateAccessTokenDestroy`. *** ## Map ### Fields with this enum * <-|[Delegate​Access​Token​Destroy​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DelegateAccessTokenDestroyUserError#field-DelegateAccessTokenDestroyUserError.fields.code)