I have a ticket opened with Apple Support that was forwarded to engineers. Deleting iMessage threads does not remove them from the Cloud even though they are removed from all synced devices.
You can go to iCloud Storage, Messages and toggle the option to disable/delete Messages in the cloud. That will delete all your iMessage data.