remove resource directory.