# PetscViewerFinalizePackage
This function destroys any global objects created in the Petsc viewers. It is called from `PetscFinalize()`. 
## Synopsis
```
#include "petscviewer.h" 
PetscErrorCode PetscViewerFinalizePackage(void)
```



## See Also
 [](sec_viewers), `PetscFinalize()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/interface/view.c.html#PetscViewerFinalizePackage">src/sys/classes/viewer/interface/view.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/interface/view.c)


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