Functions for removing directories and files.