# PetscViewersDestroy
Destroys a set of `PetscViewer`s created with `PetscViewersCreate()`. 
## Synopsis
```
PetscErrorCode PetscViewersDestroy(PetscViewers *v)
```
Collective


## Input Parameters

- ***v -*** the `PetscViewer`s to be destroyed.





## See Also
 [](sec_viewers), `PetscViewer`, `PetscViewerSocketOpen()`, `PetscViewerASCIIOpen()`, `PetscViewerCreate()`, `PetscViewerDrawOpen()`, `PetscViewersCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/interface/viewers.c.html#PetscViewersDestroy">src/sys/classes/viewer/interface/viewers.c</A>


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


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