This plugin is part of the Kuzzle Enterprise Plan. If you are interested, please contact us.

purge #

Deletes, for good, a finished job's archive (the old indice, with the old values of removed fields and failed documents) and its failed documents list.

On a done job, it gives back the disk space of the collection before the migration. On an aborted job, which has no archive, it only drops the failed documents list.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/mapping-migration/migration/purge?jobId=<jobId>
Method: POST

Other protocols #

{
  "controller": "mapping-migration/migration",
  "action": "purge",
  "jobId": "<jobId>"
}

Kourou #

kourou mapping-migration/migration:purge -a jobId=<jobId>

Arguments #

ArgumentTypeDescription
jobIdstringRequired. Job identifier, from start, or archives[].jobId in status

Response #

{
  "indice": "&iot.sensors"
}
PropertyTypeDescription
indicestringThe deleted archive indice; null if the job had no archive (an aborted job)

Possible errors #

Error idStatusWhen
plugin.mapping-migration.forbidden403Missing collection:update on the job's collection
plugin.mapping-migration.unknown_job404No archive nor failed documents for this job, and it is not the current one (already purged, or never existed)
plugin.mapping-migration.job_running412The job is still running
plugin.mapping-migration.unsupported_engine412Kuzzle does not run on Elasticsearch 8