Ok so, I currently have filled up 2 tb of icloud storage. If I delete an iphone’s backup from icloud, will that also delete all the data that is stored in icloud for that iphone? What I mean by this is, all of the old data that may not be on my iphone now will be gone? Or is a backup just a copy of the data on the iphone? If I delete the backup from icloud to make more space for a new backup will I still have all my data on my iphone?
A backup is just a copy of data on your iPhone, yes. However some types of data on your phone are not stored in iCloud Backup, but rather in other parts of iCloud or similar services. This includes for example photos in iCloud Photos, files in iCloud Drive, and Contacts, Calendars, Bookmarks, Mail, Notes, Health Data and Voice Memos in iCloud.
Deleting a backup from iCloud will not delete the data on your iPhone.
If you delete all the backups of your phone, you'll only have the data on your phone. Data that was previously stored only in the backups, and that is not stored on your phone or in other cloud services, will now be gone.