Deleting a file from Files area doesn't remove it from Assistants

Seems like if one deletes a file from the Files area, it does not automatically remove them from the Assistants where they might be used/linked to.
Example: file-CL7WcaaiXDFH3xECHtjiP9zD was deleted from python API, but the Assistant still references the file. This causes downstream issues in application which tries to retrieve all assistant files and can’t get filename from this ‘deleted’ file-id.

Can someone check on this? Thanks!

Never mind! figured out there’s a client.beta.assistants.files.delete() that removes the files from the assistant, while client.files.delete() removes the file from the Files repository.
Marking this closed or please mark this thread as closed.

2 Likes