If you copied a shared folder from your Dropbox folder to another location on your computer, and you had view-only access to the shared folder, the copy of the folder might be locked.
This article explains how to unlock the folder and delete it from your computer.