delete the target directory on server