Deleting a File
Function Syntax
MPI_File_delete(const char* filename, MPI_Info info)
PMPI_File_delete(const char* filename, MPI_Info info)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
*filename |
Name of the file to be deleted |
Non-empty string of less than 256 bytes |
Input |
info |
info object (handle) |
Non-empty |
Input |
Return Value
- Success: MPI_SUCCESS
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
MPI_ERR_NO_SUCH_FILE |
No such file |
Notes
If the group field in the configuration file is used to enable the file aggregation function, MPI_File_delete or PMPI_File_delete deletes only the file with the same name but does not delete the data in the .shore folder.
Parent topic: File Operations