DELETE
/
assistant
/
files
/
{assistant_name}
/
{assistant_file_id}
from pinecone import Pinecone
pc = Pinecone(api_key="YOUR_API_KEY")

# Get your assistant.
assistant = pc.assistant.Assistant(
    assistant_name="YOUR_ASSISTANT_NAME", 
)

# Delete a file from your assistant.
assistant.delete_file(file_id="070513b3-022f-4966-b583-a9b12e0290ff")
This response has no body data.

This feature is in public beta and is not recommended for production usage. Join the beta waitlist and review the preview terms for more details.

from pinecone import Pinecone
pc = Pinecone(api_key="YOUR_API_KEY")

# Get your assistant.
assistant = pc.assistant.Assistant(
    assistant_name="YOUR_ASSISTANT_NAME", 
)

# Delete a file from your assistant.
assistant.delete_file(file_id="070513b3-022f-4966-b583-a9b12e0290ff")

Authorizations

Api-Key
string
headerrequired

Pinecone API Key

Path Parameters

assistant_file_id
string
required

The UUID of the file to be described.