Simple solution to delete multiple files

Could you improve the Storage files section in OpenAI API?

We need something as simple as using shift or tick boxes. Not this way:

1 Like

The API itself doesn’t have a “batch delete” method that could simply accept a list of files; instead one must make hundreds or thousands of API calls on “cleanup day”. Therefore, a delete method that accepts a body parameter with files to remove would be the first improvement.

2 Likes

Thanks @arata this is a great complement. This API (maybe via CLI program) solution could make things easier too. The delete option might be by day, by project, or by filename regex, among others. Hope they put in 2025 roadmap.

1 Like