Merge "base: add API to remove file if it exists."