clean resources for a note removes the note's resource directory if it is empty