# Clean up detection alert migrations **DELETE /api/detection_engine/signals/migration** Migrations favor data integrity over shard size. Consequently, unused or orphaned indices are artifacts of the migration process. A successful migration will result in both the old and new indices being present. As such, the old, orphaned index can (and likely should) be deleted. While you can delete these indices manually, the endpoint accomplishes this task by applying a deletion policy to the relevant index, causing it to be deleted after 30 days. It also deletes other artifacts specific to the migration implementation. ## Servers - http://localhost:5601: http://localhost:5601 () ## Authentication methods - Basic auth ## Parameters ### Body: application/json (object) Array of `migration_id`s to cleanup - **migration_ids** (array[string]) Array of `migration_id`s to cleanup. ## Responses ### 200 Successful response #### Body: application/json (array[object]) - **destinationIndex** (string) - **error** (object) - **id** (string) - **sourceIndex** (string) - **status** (string) - **updated** (string(date-time)) - **version** (string) ### 400 Invalid input data response #### Body: application/json (object) - **error** (string) - **message** (string) - **statusCode** (integer) ### 401 Unsuccessful authentication response #### Body: application/json (object) - **error** (string) - **message** (string) - **statusCode** (integer) ### 500 Internal server error response #### Body: application/json (object) - **message** (string) - **status_code** (integer) [Powered by Bump.sh](https://bump.sh)