Delete file
Delete a file from storage. The file is first removed from every vector store it is attached to, embeddings included, so it no longer appears in vector store search or file_search results. If that cannot finish, the file is kept and the request fails; retrying completes the deletion. Returns 400 feature_unavailable when the file is attached to a vector store while the search service is unavailable, and 409 when the file was added to a vector store during the deletion.
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.