Hi, I'm Rodrigo, and I will help you.
Deleting the OneDrive app will not delete the data on the cloud (which you can access from the browser), but solely deleting the app will not free up the space on your hard drive. After uninstalling OneDrive, you need to delete the OneDrive folder to free up the space.
If you want to keep using the OneDrive app and free up the space on your hard drive, you can use the "Files on Demand" option, which will keep the files on the cloud and only download them as you use.
Right-click the OneDrive icon in the right side of the taskbar > Settings > Sync and Backup > Advanced Settings > Free up disk space