# PFDestroy
Destroys PF context that was created with PFCreate(). 
## Synopsis
```
#include "petscpf.h" 
PetscErrorCode PFDestroy(PF *pf)
```
Collective on PF


## Input Parameter

- ***pf -*** the function context





## See Also
 `PFCreate()`, `PFSet()`, `PFSetType()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/interface/pf.c.html#PFDestroy">src/vec/pf/interface/pf.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/tutorials/ex4.c.html">src/dm/tutorials/ex4.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex22.c.html">src/snes/tutorials/ex22.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/constant/const.c.html#PFDestroy_Constant">PFDestroy_Constant in src/vec/pf/impls/constant/const.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/constant/const.c.html#PFDestroy_Identity">PFDestroy_Identity in src/vec/pf/impls/constant/const.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/matlab/cmatlab.c.html#PFDestroy_Matlab">PFDestroy_Matlab in src/vec/pf/impls/matlab/cmatlab.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/string/cstring.c.html#PFDestroy_String">PFDestroy_String in src/vec/pf/impls/string/cstring.c</A><BR>


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


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