Deletes the file located at 'filename'. Args: filename: string, a filename Raises: errors.OpError: Propagates any errors reported by the FileSystem API. E.g., NotFoundError if the file does not exist.
(filename)
| 285 | |
| 286 | @tf_export(v1=["gfile.Remove"]) |
| 287 | def delete_file(filename): |
| 288 | """Deletes the file located at 'filename'. |
| 289 | |
| 290 | Args: |
| 291 | filename: string, a filename |
| 292 | |
| 293 | Raises: |
| 294 | errors.OpError: Propagates any errors reported by the FileSystem API. E.g., |
| 295 | NotFoundError if the file does not exist. |
| 296 | """ |
| 297 | delete_file_v2(filename) |
| 298 | |
| 299 | |
| 300 | @tf_export("io.gfile.remove") |
no test coverage detected