Skip to content

Delete Dataset

Delete a Marqtune dataset.


Note: This operation cannot be undone, and the deleted dataset can't be recovered.

DELETE /datasets/{dataset_id}

Example

from marqtune.client import Client

url = "https://marqtune.marqo.ai"
api_key = "{api_key}"
marqtune_client = Client(url=url, api_key=api_key)

marqtune_client.delete_dataset({dataset_id})
curl -XDELETE https://marqtune.marqo.ai/datasets/{dataset_id}
     --header 'x-api-key: {api_key}'

Response: 200 OK

{
    "statusCode": 200,
    "body": {
        "message": "dataset deleted successfully"
    }
}

Response: 400 (Already Deleted)

Dataset is already deleted.

{
    "statusCode": 400,
    "body": {
        "message": "dataset is already deleted"
    }
}

Response: 400 (Cannot Delete)

Dataset cannot be deleted while it is provisioned.

{
    "statusCode": 400,
    "body": {
        "message": "dataset cannot be deleted while it is provisioning"
    }
}

Response: 404 (Not Found)

Dataset with the provided ID doesn't exist.

{
    "statusCode": 404,
    "body": {
        "message": "dataset not found"
    }
}

Response: 400 (Invalid Request)

Request path or method is invalid.

{
    "statusCode": 400,
    "body": {
      "message": "Invalid request method"
    }
}

Response: 401 (Unauthorised)

Unauthorised. Check your API key and try again.

{
  "message": "Unauthorized."
}

Response: 500 (Internal server error)

Internal server error. Check your API key and try again.

{
  "message": "Internal server error."
}