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 --fail-with-body --connect-timeout 10 --max-time 60 \
--request POST "https://api.wavespeed.ai/api/v3/predictions/delete" \
--header "Authorization: Bearer $WAVESPEED_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids": ["e6832d4abffb4d79bfbca19783fca133"]}'
Response
{
"code": 200,
"message": "success",
"data": {
"deleted_count": 2
}
}Parameters
Request
| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | Yes | List of prediction UUIDs 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