pub fn thread_delete( ctx: Context<'_, '_, '_, '_, ThreadDelete<'_>>, ) -> Result<()>
Closes an existing thread account and returns the lamports to the owner.