Delete a Collection
The deletion of a Collection with a TaskingAI client SDK is straightforward.
You can use the delete_collection
method with the collection_id
to delete a Collection.
import taskingai
taskingai.retrieval.delete_collection(collection_id='YOUR_COLLECTION_ID')
When executed, the specified collection is permanently removed from the project and the records and chunks associated with it are also deleted.
warning
Be cautious when deleting a collection especially when it is already associated with an assistant. Deletion may cause the Assistant to receive unexpected errors when generating response messages.