Hi,
I have Open AI Assistants that I call via the Conversation with Assistants action in Zapier. In these workflows, users upload files. Obviously, after a while, the files section of my Open AI developer account gets really cluttered with an endless list of files.
As I understand it, these files do not get removed automatically and incur charges if they sit there taking up storage.
I believe there is API documentation for removing the files, but I don’t quite have the technical know-how to add it into my Zap. I’d ideally like to have it so after the workflow is finished, right at the end, maybe after a delay step, have the files deleted automatically.
- Is there a default ChatGPT step for deleting files that I can add to my zap? This would be ideal.
- If not, how can I add this step myself using the documentation? Here is it, taken from here:
file_deletion_status = client.beta.assistants.files.delete(
assistant_id=assistant.id,
file_id=file.id
)
Thanks in advance.