How to DELETE threads with GPT-4o and assistants

In general, there is no NATIVE method to list threads. HOWEVER with clever use of metadata, you can list threads and ofc then programmtically delete them.

>>> from bmodels import AutoExecThread
>>> AutoExecThread.create()
[AutoExecBaseThread(thread_id='thread_pL5Vs3dPmDt7el4KuGzr1cNW')]
>>> AutoExecThread.list()
[AutoExecBaseThread(thread_id='thread_pL5Vs3dPmDt7el4KuGzr1cNW')]
>>> AutoExecThread.create()
[AutoExecBaseThread(thread_id='thread_pL5Vs3dPmDt7el4KuGzr1cNW'), AutoExecBaseThread(thread_id='thread_dIuaNGllXPhoZLO6gFyyK6H3')]
>>> AutoExecThread.list()
[AutoExecBaseThread(thread_id='thread_pL5Vs3dPmDt7el4KuGzr1cNW'), AutoExecBaseThread(thread_id='thread_dIuaNGllXPhoZLO6gFyyK6H3')]