# PetscOptionsClear
Removes all options form the database leaving it empty. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscOptionsClear(PetscOptions options)
```
Logically Collective


## Input Parameter

- ***options -*** options database, use NULL for the default global database


The collectivity of this routine is complex; only the MPI ranks that call this routine will
have the affect of these options. If some processes that create objects call this routine and others do
not the code may fail in complicated ways because the same parallel solvers may incorrectly use different options
on different ranks.




## See Also
 `PetscOptionsInsert()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/options.c.html#PetscOptionsClear">src/sys/objects/options.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/options.c)


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