How can I remove myself from a shared folder?

Go to the file/folder shared with you, hover over it and click on the Share button that appears, click on View People. Clicking on the [-] button next to your name will revoke your permission to access this file/folder. The person who shared the file/folder with you will be able to see that you removed yourself.