Skip to content
Deleting files usin...
 
Notifications
Clear all

Deleting files using OPEN-AI API call

10 Posts
3 Users
0 Reactions
4 Views
LeftyLuke
(@leftyluke)
Posts: 4
Active Member
Topic starter
 

I'd like to make an API call to delete all files in OpenAI.

The documentation mentions this:

Source: https://platform.openai.com/docs/api-reference/files/retrieve

I have tried passing the file ID through the body and the query parameters, but both attempts result in a 404 response. Here is my setup for both attempts:

Scherm­afbeelding 2024-06-12 om 13.42.48

I would like to utilize the response body to array all IDs for the purpose of deleting everything.

 
Posted : 12/06/2024 11:45 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Welcome to the callin.io community!

You entered an Absolute (full) URL.

If you read the description below it, it says

Enter a path relative … for example…

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

 
Posted : 12/06/2024 12:09 pm
LeftyLuke
(@leftyluke)
Posts: 4
Active Member
Topic starter
 

Oh, that's right, it's explained just below. Haha, thanks! I'll just go back to my corner (it's one of those days).

 
Posted : 12/06/2024 12:32 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

No problem, happy to assist!

  1. If you have a new question in the future, please start a new thread. This helps others with similar issues find answers more easily, and you're more likely to get a response as new questions are actively monitored.

  2. The callin.io Community guidelines suggest marking helpful replies as solutions to maintain organization within the Community.

This action marks the topic as resolved, which means:

  • others can save time when reviewing recent activity, and
  • others can quickly access the solution if they encounter the same challenge

To do this, simply click the checkbox located at the bottom of the post that provides the answer you need:

Screenshot_2023-10-04_161049

  1. Remember to like and bookmark this topic for easy future reference!

  2. Feel free to join the unofficial callin.io Discord server for real-time chat and video support.

Join the callin.io Fans Discord server to chat with fellow users!

 
Posted : 12/06/2024 12:40 pm
LeftyLuke
(@leftyluke)
Posts: 4
Active Member
Topic starter
 

Yes, I will! Unfortunately, it's throwing another error, so I can't mark it as solved yet.

 
Posted : 12/06/2024 2:18 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

You didn’t follow the URL format precisely. The OpenAI documentation indicates that you need to include the file ID as part of the URL.

There is no Body required. Leave it empty.

You can also complete this brand new course/tutorial in the callin.io Academy on how to use external APIs — API calls with HTTP modules

  • API and Endpoints
  • Header and body
  • Multipart/form-data
  • OAuth 2.0

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

 
Posted : 12/06/2024 3:13 pm
LeftyLuke
(@leftyluke)
Posts: 4
Active Member
Topic starter
 

I understand, this does function correctly, thank you!

So, I just need to invoke the URL with different IDs to remove all of them. I assume I cannot include multiple IDs in a single request?

 
Posted : 14/06/2024 7:07 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Yes, that's accurate. Your capabilities are limited by what the external API permits.

request private consultation

Join the unofficial callin.io Discord server to chat with us!

 
Posted : 14/06/2024 10:32 am
Andrea-ProfitAILab
(@andrea-profitailab)
Posts: 1
New Member
 

I'm still encountering some difficulties with the delete API.

Do you have any suggestions?

 
Posted : 18/06/2024 5:39 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Welcome to the callin.io community!

Could you please create a separate topic for this?

While it’s tempting to continue an existing thread, a more effective approach would be to start a new topic. It helps other community users to respond to your query, and keeps our space organised for everyone. If you start a new conversation you are also more likely to get help from other users. You can refer others back to a related topic by including that link in your question. Thank you for understanding and keeping our community neat and tidy.

The “New Topic” link can be found in the top-right of the header:

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

 
Posted : 18/06/2024 6:55 am
Share: