# SNESMonitorCancel
Clears all the monitor functions for a `SNES` object. 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESMonitorCancel(SNES snes)
```
Logically Collective


## Input Parameters

- ***snes -*** the `SNES` context



## Options Database Key

- ***-snes_monitor_cancel -*** cancels all monitors that have been hardwired
into a code by calls to SNESMonitorSet(), but does not cancel those
set via the options database



## Note
There is no way to clear one specific monitor from a `SNES` object.




## See Also
 `SNES`, `SNESMonitorGet()`, `SNESMonitorDefault()`, `SNESMonitorSet()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/interface/snes.c.html#SNESMonitorCancel">src/snes/interface/snes.c</A>


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


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