Your query has 2 approach based on what you are looking for.
If you are looking to delete chat message in 1-1 Chat, this is controlled by Messaging Policies.
If you are looking to delete your Post in a Teams Channel, the admins or owners can manage this setting from Teams Settings.