# ファイルの削除

`DELETE /api/file/{hash}`

URL: https://repsona.com/ja/api/delete-file-hash

ファイルを削除します。削除できるのはアップロードしたユーザーだけで、管理者でも削除できません。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `hash` | path | string | 必須 | ファイルのハッシュ (UUID) です。アップロード時のレスポンスの hash に入っています。 |

## リクエスト

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

## レスポンス

- 200: Deleted
- 401: Authentication is required
- 403: Not the uploader
- 404: File not found

## レスポンスの例

```json
{
  "message": "success"
}
```
