slashdelete#
- Files.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.Exton the master process and forFnameN.Exton all processes.
- fname
Notes
In distributed-memory parallel (DMP) mode, only the master process will delete
Fname.Extby default. However, whenDistKeyis set to 1 (or ON, or YES) or 2 (or BOTH), the command is executed by all processes. In this case,Fnamewill automatically have the process rank appended to it. This meansFnameN.Extwill be deleted by all processes, whereNis the DMP process rank. For more information see in the Parallel Processing Guide.