# PetscDualSpaceDestroy
Destroys a `PetscDualSpace` object 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceDestroy(PetscDualSpace *sp)
```
Collective on sp


## Input Parameter

- ***sp -*** the `PetscDualSpace` object to destroy





## See Also
 `PetscDualSpace`, `PetscDualSpaceView()`, `PetscDualSpace()`, `PetscDualSpaceCreate()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/interface/dualspace.c.html#PetscDualSpaceDestroy">src/dm/dt/dualspace/interface/dualspace.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html">src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceDestroy_Lagrange">PetscDualSpaceDestroy_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/refined/dualspacerefined.c.html#PetscDualSpaceDestroy_Refined">PetscDualSpaceDestroy_Refined in src/dm/dt/dualspace/impls/refined/dualspacerefined.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/simple/dspacesimple.c.html#PetscDualSpaceDestroy_Simple">PetscDualSpaceDestroy_Simple in src/dm/dt/dualspace/impls/simple/dspacesimple.c</A><BR>


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


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