Folder delete endpoint, and corresponding test

My test found a bug! Yay!