Abstracted directory entry deletion into it's own function deleteChild, added rmdir and rm