Skip to content
OpenAI File Deletio...
 
Notifications
Clear all

OpenAI File Deletion via API

3 Posts
2 Users
0 Reactions
3 Views
Matthieu_WIFIrst
(@matthieu_wifirst)
Posts: 3
Active Member
Topic starter
 

Hello everyone, I'm looking to delete a file from my vector store after it's been used.
I attempted the following:

However, this resulted in a 404 error. I also tried including a request body, adding {} to the URL, and appending query strings, but I encountered the same response. The file ID appears to be in the format file-....

Could you please explain the correct way to interact with the API for file deletion?

I also have another question: Is it possible to remove a specific older file from storage if it contains a particular character string in its title?

 
Posted : 21/06/2024 8:03 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Welcome to the callin.io community!

You entered an Absolute (full) URL into the URL field.

If you read the description below it, it states:

Enter a path relative … for example …

Join the callin.io Fans Discord server to chat with other makers!

 
Posted : 21/06/2024 8:45 am
Matthieu_WIFIrst
(@matthieu_wifirst)
Posts: 3
Active Member
Topic starter
 

Thanks, reading your message helped me understand what a relative path is.
I learned about relative paths (I only had to write v1/files/fileID in the URL for others), how to set up my OpenAI API calls, and my scenario is now complete.
Thanks.

 
Posted : 21/06/2024 9:01 am
Share: