Should I be deleting threads...?

Hi all, I’m new to the Assistants API. When creating threads is the best practise to track their usage and delete them when no longer needed or it has no impact and eventually openAI’s backend will do that?

1 Like

No need to. Just make sure to make a meaningful decision as to whether you want to continue using a thread, or starting a new one each time. The latter is usually the decision for most use cases.


OpenAI will not delete threads created. You could trace them using other applications(me personally I use langfuse) and store only what is needed. If your use-case needs you to delete the thread, you may use the id to delete but otherwise you should be good to go. But, having the thread ID is useful as you give the flexibility to users to resume conversations.

1 Like