Here's how to do it:
- Go to Dropbox and log in.
- Click "Shared" in the left sidebar.
- Find the folder you want to leave.
- Click the three dots (⋯) next to the folder and select "Remove from Dropbox."
- Leaving a folder removes your access to it, and it no longer takes up space in your Dropbox account.