Hey @AyaanSingh, welcome to our Community.
If you want to keep your files in Dropbox, but want to free up your hard drive space, you can use our dedicated features, to help you do that.
You can use our selective sync feature, which removes entire folders from your Dropbox folder, but keeps them available online.
Or you can make your files 'online-only', to keep them in the Dropbox folder, without them taking up space.
I hope this helps, but let me know if you have any questions.