Documentation says delete file endpoint is "DELETE https://api.openai.com/v1/files/{file_id}/content" but I think “/content” part is not correct.
Initially, I followed the documentation and I got this error: 405 Not allowed to DELETE on /v1/files/file-XXXX/content. (HINT: Perhaps you meant to use a different HTTP method?)
Then I tried DELETE /v1/files/{file_id} and it worked as expected.
Updating documentation could save someone else time
Oh dang, I’ve seen that error before with a different API endpoint. ‘SID’ is short for security identifier ( SID ) is used to uniquely identify a security principal or security group in Windows. Not sure if that is for internal use or not though.
I’ll remind myself to send a support email tonight regarding the different API endpoint I noticed that error on too.