added ability to delete files and directories