# タスクの削除

`DELETE /api/task/{taskId}`

URL: https://repsona.com/ja/api/delete-task-taskid

タスクと、その下のサブタスクを削除します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | 必須 | タスクの ID です。 |

## リクエスト

```sh
curl -X DELETE "https://<space>.repsona.com/api/task/{taskId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Task deleted
- 400: Invalid task identifier
- 401: Authentication is required
- 404: Task not found

## レスポンスの例

```json
{
  "deletedTaskIds": [
    100446
  ]
}
```
