# DMClearGlobalVectors
Destroys all the global vectors that have been stashed in this DM 
## Synopsis
```
#include "petscdm.h" 
PetscErrorCode DMClearGlobalVectors(DM dm)
```
Collective on dm


## Input Parameter

- ***dm -*** the dm





## See Also
 `DMCreateGlobalVector()`, `VecDuplicate()`, `VecDuplicateVecs()`,
`DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMGlobalToLocalBegin()`,
`DMGlobalToLocalEnd()`, `DMLocalToGlobalBegin()`, `DMCreateLocalVector()`, `DMRestoreLocalVector()`
`VecStrideMax()`, `VecStrideMin()`, `VecStrideNorm()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dmget.c.html#DMClearGlobalVectors">src/dm/interface/dmget.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dmget.c)


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