It always errors out when deleting currently opened project with "can not delete project folder". If possible forcibly close the project, release all assets and then delete the folder. Otherwise a graceful error message stating that you can not delete the current project would be more appropriate.