# Version を削除

データセットのバージョンを削除すると、workspace の [Trash](broken://pages/26b3274c9e706a0dfcf2a5df33684507d4da58ad) に 30 日間移動され、その後完全に削除されます。保持期間中であれば、いつでも Trash から復元できます。

そのバージョンに対する進行中の学習は、Trash に移動すると自動的にキャンセルされます。削除されたバージョンの学習済みモデルは、バージョンが復元されるまで配信を停止します。

{% hint style="info" %}
生成済み画像のクォータに達している場合、バージョンを Trash に移動しても、使用量はすぐには解放されません。生成済み画像は、バージョンが完全に削除されたとき（30 日の保持期間の終了後、または Trash から手動で削除したとき）に回収されます。
{% endhint %}

## バージョンを削除する

1. プロジェクトの Versions ページを開き、削除したいバージョンを選択します。
2. 「Edit Dataset」をクリックし、次に「Delete Version」をクリックします。
3. 確認のためにバージョン名を入力します。
4. 「Move to Trash」をクリックします。

<figure><img src="/files/d60e1135ef95ce6df1c717765598b43cc49b9f73" alt=""><figcaption></figcaption></figure>

## 復元または完全削除

参照 [Trash](broken://pages/26b3274c9e706a0dfcf2a5df33684507d4da58ad) 30 日の保持期間を待たずに削除済みバージョンを復元する方法、またはすぐに削除する方法については、を参照してください。復元するには、そのバージョンの親プロジェクトがアクティブである必要があります（それ自体が Trash に入っていないこと）。

## API、SDK、または CLI から削除する

バージョンを Trash に移動する方法は、次の方法でも可能です:

* REST API: `DELETE /:workspace/:project/:version`
* Python SDK: `version.delete()`
* CLI: `roboflow version delete <workspace>/<project>/<version>`

Web アプリ以外で復元するには `version.restore()` を SDK から、または `roboflow version restore <workspace>/<project>/<version>` を CLI から使用します。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/datasets/dataset-versions/delete-a-version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
