# PetscDrawViewPortsDestroy
frees a `PetscDrawViewPorts` object 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawViewPortsDestroy(PetscDrawViewPorts *ports)
```
Collective on the PetscDraw inside ports


## Input Parameter

- ***ports -*** the `PetscDrawViewPorts` object





## See Also
 `PetscDrawViewPorts`, `PetscDrawSplitViewPort()`, `PetscDrawSetViewPort()`, `PetscDrawViewPortsSet()`, `PetscDrawViewPortsCreate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/dviewp.c.html#PetscDrawViewPortsDestroy">src/sys/classes/draw/interface/dviewp.c</A>


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


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