:orphan:
# DMPlexLabelClearCells
Remove cells from a label 
## Synopsis
```
#include "petscdmplex.h"    
#include "petscdmlabel.h"   
PetscErrorCode DMPlexLabelClearCells(DM dm, DMLabel label)
```

## Input Parameters

- ***dm -*** The `DM`
- ***label -*** A `DMLabel` marking surface points and their adjacent cells



## Output Parameter

- ***label -*** A `DMLabel` without cells





## Note
This undoes `DMPlexLabelAddCells()` or `DMPlexLabelAddFaceCells()`


## See Also
 [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexLabelComplete()`, `DMPlexLabelCohesiveComplete()`, `DMPlexLabelAddCells()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexsubmesh.c.html#DMPlexLabelClearCells">src/dm/impls/plex/plexsubmesh.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexsubmesh.c)


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