# TaoFinalizePackage
This function destroys everything in the PETSc/Tao interface to the Tao package. It is called from `PetscFinalize()`. 
## Synopsis
```
PetscErrorCode TaoFinalizePackage(void)
```


## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/dlregistao.c.html#TaoFinalizePackage">src/tao/interface/dlregistao.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/dlregistao.c)


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