How to Delete a File on OpenAI using an API Request

  • 13 November 2023
  • 0 replies
  • 402 views

Userlevel 7
Badge +14

How to Delete a File on OpenAI using an API Request

 

Contribution by Troy Tessalone

Troy is a Certified Zapier Expert who puts Programmable Productivity to work for YOU!

 

App

OpenAI

 

Action

Action: OpenAI - API Request

NOTES:

  • This action will handle the OpenAI authentication for you.
  • OpenAI File IDs start with “file-
    • Example: file-XXXXX

 

 

API

OpenAI API docs for the endpoint: https://platform.openai.com/docs/api-reference/files/delete

 

 

CONFIG

HTTP Method: DELETE

URL: https://api.openai.com/v1/files/{file_id}

NOTES:

  • Map the OpenAI File ID from a previous Zap step as part of the URL
  • You can leave all the other sections/fields blank

 

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.