Skip to main content
DELETE
/
api
/
adm
/
import
/
deleteData
Delete Import Batch Data
curl --request DELETE \
  --url https://localhost:44371/api/adm/import/deleteData \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "code": 200,
  "errorMessage": null
}

Description

Removes completed import batch records and associated files from the system. This operation helps manage storage by cleaning up old imports that are no longer needed for reference. Typically used for batches older than the retention period (90 days).

Input

No parameters required. The system automatically determines which batches to delete based on retention policies.

Output

Returns a BaseCommandResponse indicating whether the deletion completed successfully.

Example Request

DELETE /api/admin/importBatches/data
Authorization: Bearer {token}

Example Response

{
  "success": true,
  "code": 200,
  "errorMessage": null
}

Errors

  • 400 Bad Request — Active batches exist (cannot delete while imports are still processing).
  • 401 Unauthorized — Missing or invalid authentication token.

Notes

  • Only completed or failed batches older than retention period (90 days) are deleted.
  • Processing batches are not deleted to prevent data corruption.
  • Deletion is permanent and cannot be undone.
  • Both batch records and associated files (uploads and results) are removed.
  • Use this operation periodically to manage storage space.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Response

Always returned. Check the success property in the response body to determine if the operation succeeded.

Standard response structure containing operation status and error information. Standard command response indicating the result of a data modification.

success
boolean

True if the operation completed successfully; false if an error occurred.

Example:

true

code
enum<string>

Result code indicating the outcome of the operation.

Available options:
Unknown,
Success,
BadRequest,
Unauthorized,
NotFound,
Error
Example:

200

errorMessage
string | null

Human-readable error message when an error occurs.

Example:

null