:orphan:
# PetscOptionsDestroy
Destroys an option database.
## Synopsis
```
#include "petscsys.h"
PetscErrorCode PetscOptionsDestroy(PetscOptions *options)
```
Logically Collective on whatever communicator was associated with the call to `PetscOptionsCreate()`
## Input Parameter
- ***options -*** the `PetscOptions` object
## See Also
`PetscOptionsInsert()`, `PetscOptionsPush()`, `PetscOptionsPop()`, `PetscOptionsInsert()`, `PetscOptionsSetValue()`
## Level
advanced
## Location
src/sys/objects/options.c
## Examples
src/sys/tutorials/ex19.c
src/sys/tutorials/ex20.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)