You can delete a dataset via code using the Phoenix REST API endpoint `DELETE /v1/datasets/{id}` or the corresponding client method; this is fully supported and documented for both Python and TypeScript clients. However, while you can create and append to datasets programmatically, there is currently no official API or SDK method to update (edit) an existing dataset or its examples鈥攅diting and deleting individual examples is only available in the UI, not via the SDK or REST API at this time, though there are open feature requests for this functionality.
For deletion, see the <https://arize.com/docs/phoenix/sdk-api-reference/rest-api/datasets|REST API docs> and <https://arize-ai.github.io/phoenix/interfaces/_arizeai_phoenix-client.__generated___api_v1.operations.html#deleteDatasetById|API reference>. For updates, see <https://github.com/Arize-ai/phoenix/issues/9057|this GitHub issue> and <https://github.com/Arize-ai/phoenix/issues/8383|another discussion> confirming the limitation. Would you like more detail or code examples for deletion?
Sources:
- <https://arize.com/docs/phoenix/sdk-api-reference/rest-api/datasets|REST API: Datasets>
- <https://github.com/Arize-ai/phoenix/issues/9057|GitHub Issue: dataset management from SDK>
- <https://github.com/Arize-ai/phoenix/issues/8383|GitHub Issue: dataset versioning and editing>