- Mapdl.slashdelete(fname='', ext='', distkey='', **kwargs)¶
Deletes a file.
APDL Command: /DELETE
fname – File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name.
ext – Filename extension (eight-character maximum).
Key that specifies whether the file deletion is performed on all processes in distributed parallel mode (Distributed ANSYS):
1 (ON or YES) - The program performs the file deletion locally on each process.
0 (OFF or NO) - The program performs the file deletion only on the master process (default).
In distributed parallel mode (Distributed ANSYS), only the master process will delete Fname.Ext by default. However, when DistKey is set to 1 (or ON or YES), the command is executed by all processes. In this case, Fname will automatically have the process rank appended to it. This means FnameN.Ext will be deleted by all processes, where N is the Distributed ANSYS process rank. For more information see Differences in General Behavior in the Parallel Processing Guide.