:orphan:
# PetscInfoDestroy
Destroys and resets internal `PetscInfo()` data structures. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscInfoDestroy(void)
```
Not Collective




## Notes
This is automatically called in `PetscFinalize()`. Useful for changing filters mid-program, or culling subsequent
`PetscInfo()` calls down the line.

Users calling this routine midway through a program should note that `PetscInfoDestroy()`
constitutes a full reset of `PetscInfo()`. It flushes, then closes, the current info file,
re-enables all classes, and resets all internal state. Finally -- and perhaps crucially -- it
disables `PetscInfo()` as-if-by `PetscInfoAllow(PETSC_FALSE)`.


## See Also
 [](sec_PetscInfo), `PetscInfo()`, `PetscInfoSetFromOptions()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/info/verboseinfo.c.html#PetscInfoDestroy">src/sys/info/verboseinfo.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/tutorials/ex7.c.html">src/mat/tutorials/ex7.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/info/verboseinfo.c)


[Index of all Profiling routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
