:orphan: # PetscRMTree delete a directory and all of its children ## Synopsis ``` PetscErrorCode PetscRMTree(const char dir[]) ``` ## Input Parameter - ***dir -*** the name of the directory ## See Also `PetscMkdtemp()`, `PetscMkdir()` ## Level advanced ## Location src/sys/fileio/fdir.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/fileio/fdir.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)