To delete a file or folder in Dropbox, select the gear icon or three dots and select Delete.
If you have shared the file or folder with anyone, you must unshare it before you delete it. If not, the other person(s) will retain access.