Python
Together AI SDK (Python)
from together import Togetherimport osclient = Together( api_key=os.environ.get("TOGETHER_API_KEY"),)response = client.files.delete(id="file-id")print(response)
{ "id": "<string>", "deleted": true }
Delete a previously uploaded data file.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
File deleted successfully
The response is of type object.
object
Was this page helpful?