:orphan: # VecDestroyVecs Frees a block of vectors obtained with `VecDuplicateVecs()`. ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecDestroyVecs(PetscInt m, Vec *vv[]) ``` Collective ## Input Parameters - ***m -*** the number of vectors previously obtained, if zero no vectors are destroyed - ***vv -*** pointer to pointer to array of vector pointers, if `NULL` no vectors are destroyed ## Fortran Note The Fortran interface is slightly different from that given below. See the [](ch_fortran) for details. ## See Also [](ch_vectors), `Vec`, [](ch_fortran), `VecDuplicateVecs()`, `VecDestroyVecsf90()` ## Level intermediate ## Location src/vec/vec/interface/vector.c ## Examples src/ksp/ksp/tutorials/ex49.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/pde_constrained/tutorials/parabolic.c
src/vec/vec/tutorials/ex1.c
src/vec/vec/tutorials/ex19.c
src/vec/vec/tutorials/ex1f.F90
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/vector.c) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)