added directory and file deletion methods