ansys.mapdl.core.Mapdl.slashdelete#
- Mapdl.slashdelete(fname='', ext='', distkey='', **kwargs)#
Deletes a file.
Mechanical APDL Command: /DELETE
- Parameters:
- fname
str
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. The file name defaults to the current
Jobname
.- ext
str
Filename extension (eight-character maximum).
- distkey
str
Key that specifies which file deletion action is performed on all processes in distributed-memory parallel mode:
0 (OFF or NO)
- The program performs the file deletion only on the master process (default).1 (ON or YES)
- The program performs the file deletion locally on each process.2 or BOTH
- The program performs file deletion forFname
.Ext
on the master process and forFnameN
.Ext
on all processes.
- fname
Notes
In distributed-memory parallel (DMP) mode, only the master process will delete
Fname
.Ext
by default. However, whenDistKey
is set to 1 (or ON, or YES) or 2 (or BOTH), the command is executed by all processes. In this case,Fname
will automatically have the process rank appended to it. This meansFnameN
.Ext
will be deleted by all processes, whereN
is the DMP process rank. For more information see in the Parallel Processing Guide.