Delete Prediction API
Delete one or more prediction jobs by their IDs.
Warning: Deleted predictions cannot be recovered. Only predictions owned by your account can be deleted.
Endpoint
POST https://api.wavespeed.ai/api/v3/predictions/deleteRequest
curl -X POST "https://api.wavespeed.ai/api/v3/predictions/delete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids": ["247ae6a651", "8f5f0bdc7b3742"]}'
Response
{
"code": 200,
"message": "success",
"data": {
"deleted_count": 2
}
}Parameters
Request
| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | Yes | List of prediction IDs to delete |
Response
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (200 for success) |
| message | string | Status message |
| data.deleted_count | integer | Number of predictions deleted |
Notes
- Multiple predictions can be deleted in a single request
- Invalid or non-existent IDs will be ignored
- Avoid deleting running predictions unless necessary