# KSPFinalizePackage
This function destroys everything in the Petsc interface to the KSP package. It is called from PetscFinalize(). 
## Synopsis
```
PetscErrorCode KSPFinalizePackage(void)
```



## See Also
 [](chapter_ksp), `PetscFinalize()`, `KSPInitializePackage()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/dlregisksp.c.html#KSPFinalizePackage">src/ksp/ksp/interface/dlregisksp.c</A>


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


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