> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wiseyield.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete task

> Soft-delete a task.

```
DELETE https://www.wiseyield.co/api/v1/tasks/{id}
```

### Authentication

Requires a key with the `tasks:write` scope.

### Path parameters

<ParamField path="id" type="string" required>Task UUID.</ParamField>

### Response

Returns `204 No Content` on success.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://www.wiseyield.co/api/v1/tasks/aaaaaaaa.../...' \
    -H "Authorization: Bearer $WISEYIELD_API_KEY"
  ```
</RequestExample>

## Errors

| Status                    | When                                                                    |
| ------------------------- | ----------------------------------------------------------------------- |
| `400 INVALID_ID`          | `{id}` is not a valid UUID                                              |
| `401`                     | Missing, malformed, expired, or revoked API key                         |
| `403 INSUFFICIENT_SCOPE`  | Key lacks `tasks:write` scope                                           |
| `404 NOT_FOUND`           | Task doesn't exist, is already soft-deleted, or belongs to another user |
| `429 RATE_LIMIT_EXCEEDED` | Per-user rate limit reached                                             |
| `5xx`                     | Server error                                                            |
