---
title: LocationDeactivateUserError - GraphQL Admin
description: >-
The possible errors that can be returned when executing the
`locationDeactivate` mutation.
api_version: unstable
api_name: admin
source_url:
html: >-
https://shopify.dev/docs/api/admin-graphql/unstable/objects/LocationDeactivateUserError
md: >-
https://shopify.dev/docs/api/admin-graphql/unstable/objects/LocationDeactivateUserError.md
---
# LocationDeactivateUserError
object
Requires `read_locations` access scope.
The possible errors that can be returned when executing the `locationDeactivate` mutation.
## Fields
* code
[LocationDeactivateUserErrorCode](https://shopify.dev/docs/api/admin-graphql/unstable/enums/LocationDeactivateUserErrorCode)
The error code.
* field
[\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
The path to the input field that caused the error.
* message
[String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
non-null
The error message.
***
## Map
No referencing types
***
## Mutations
* [locationDeactivate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/locationDeactivate)
mutation
Deactivates a location and moves inventory, pending orders, and moving transfers " "to a destination location.
***
**Caution:** As of 2026-01, this mutation supports an optional idempotency key using the \@idempotent\ directive. As of 2026-04, the idempotency key is required and must be provided using the \@idempotent\ directive. For more information, see the \idempotency documentation\.
***
* locationId
[ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)
required
### Arguments
The ID of a location to deactivate.
* destinationLocationId
[ID](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)
The ID of a destination location to which inventory, pending orders and moving transfers will be moved from the location to deactivate.
***
***
## LocationDeactivateUserError Mutations
### Mutated by
* [locationDeactivate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/locationDeactivate)
***
## Interfaces
* [DisplayableError](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)
interface
***
## LocationDeactivateUserError Implements
### Implements
* [DisplayableError](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)