add function delete dir and files

add function delete dir and files