# TaoCancelMonitors
Clears all the monitor functions for a Tao object. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoCancelMonitors(Tao tao)
```
Logically Collective


## Input Parameters

- ***tao -*** the Tao solver context



## Options Database Key

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



## Notes
There is no way to clear one specific monitor from a Tao object.




## See Also
 `Tao`, `TaoMonitorDefault()`, `TaoSetMonitor()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoCancelMonitors">src/tao/interface/taosolver.c</A>


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


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