Skip to content

Delete Import (GraphQL)

Removes an import job and its uploaded source file. Returns a snapshot of the deleted record so you can confirm exactly which import was removed.

Operation

OperationTypePurpose
deleteAdminSettingsDataTransferImportMutationDelete an import job + its file

Quirks

  • The input takes the import's id (its resource IRI).
  • The returned node is an in-memory snapshot of the just-deleted record — its id / _id and scalar fields still resolve so you can confirm what was removed.
  • Select message for the success confirmation — it resolves to "Import deleted successfully." on a successful delete. message is null on read / list / detail; a failed delete returns a top-level errors[] entry instead.

Prerequisites

The example uses an illustrative id. Replace it with the id of an import that exists in your store — use the adminSettingsDataTransferImports query to discover valid ids.

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

Released under the MIT License.