core: Add delete_file.