# DMFieldDestroy
destroy a `DMField` 
## Synopsis
```
#include "petscdmfield.h" 
#include "petscdmfield.h" 
PetscErrorCode DMFieldDestroy(DMField *field)
```
Collective


## Input Parameter

- ***field -*** address of `DMField`





## See Also
 `DMField`, `DMFieldCreate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/interface/dmfield.c.html#DMFieldDestroy">src/dm/field/interface/dmfield.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/tutorials/ex1.c.html">src/dm/field/tutorials/ex1.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/impls/da/dmfieldda.c.html#DMFieldDestroy_DA">DMFieldDestroy_DA in src/dm/field/impls/da/dmfieldda.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/impls/ds/dmfieldds.c.html#DMFieldDestroy_DS">DMFieldDestroy_DS in src/dm/field/impls/ds/dmfieldds.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/impls/shell/dmfieldshell.c.html#DMFieldDestroy_Shell">DMFieldDestroy_Shell in src/dm/field/impls/shell/dmfieldshell.c</A><BR>


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


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