Remove the /nodes directory when deleting a node

Otherwise it might have stale data inside.

(cherry picked from commit de53906183a52eb06b9b26db64e0085feea32adb)