Skip to content

Delete Inventory Source

Deletes a single inventory source by its IRI id.

How this menu works

For field meanings and the delete guards, see the Inventory Sources overview.

Operation

OperationTypePurpose
deleteAdminSettingsInventorySource(input:)MutationDelete an inventory source

The input.id is the resource IRI. Use the adminSettingsInventorySources query to discover valid ids.

The mutation returns the deleted record under adminSettingsInventorySource — its id (IRI), _id (numeric) and scalar fields all resolve, so you can confirm exactly which source was removed.

Select message for the success confirmation — it resolves to "Inventory source deleted successfully." on a successful delete. message is null on read / list / create / update; a failed delete returns a top-level errors[] entry instead.

Delete guards

A delete is refused (error, equivalent to HTTP 422 on REST) when it would remove the last remaining inventory source, or when the source is still referenced by product inventories. Re-assign or zero out those product quantities first.

Permission: settings.inventory_sources.delete. All operations require an admin Bearer token — see Authentication.

Released under the MIT License.