use simpler way to remove files