:orphan:
# PetscDrawDestroy
Deletes a draw context.
## Synopsis
```
#include "petscdraw.h"
PetscErrorCode PetscDrawDestroy(PetscDraw *draw)
```
Collective
## Input Parameter
- ***draw -*** the drawing context
## See Also
`PetscDraw`, `PetscDrawCreate()`
## Level
beginner
## Location
src/sys/classes/draw/interface/draw.c
## Examples
src/ksp/ksp/tutorials/ex68.c
src/ksp/ksp/tutorials/ex69.c
## Implementations
PetscDrawDestroy_Image in src/sys/classes/draw/impls/image/drawimage.c
PetscDrawDestroy_TikZ in src/sys/classes/draw/impls/tikz/tikz.c
PetscDrawDestroy_Win32 in src/sys/classes/draw/impls/win32/win32draw.c
PetscDrawDestroy_X in src/sys/classes/draw/impls/x/xops.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/draw.c)
[Index of all Draw routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)