Delete a Chunk
To delete a chunk from a collection, use the delete_chunk
method.
This requires the collection ID and the chunk ID.
import taskingai
# delete chunk
taskingai.retrieval.delete_chunk(
collection_id="YOUR_COLLECTION_ID",
chunk_id="YOUR_CHUNK_ID",
)
Once executed, the specified chunk is permanently removed from the collection. But at record-level, the record still exists if the deleted chunk was created by creating a record.