I’m developing an assistant that has several files pre-loaded. Using the API, I create an instance of the assistant for each chat session. During the session, I upload an additional file and I want to remove only that file when the session is over, leaving the pre-loaded files in place for the next session.
I invoke the UnlinkFile and DeleteFile methods, but the files are not being removed. They still appear in storage, and are still linked to the assistant. This causes subsequent conversations to include outdated information from previous sessions.
I need a way to reliably unlink and discard files that are no longer needed, while keeping the preloaded files in place.