:orphan:
# VecDestroyVecsF90
Frees a block of vectors obtained with `VecDuplicateVecsF90()`.
## Synopsis
```
VecDestroyVecsF90(PetscInt n,{Vec, pointer :: x(:)},PetscErrorCode ierr)
```
Collective
## Input Parameters
- ***n -*** the number of vectors previously obtained
- ***x -*** pointer to array of vector pointers
## Output Parameter
- ***ierr -*** error code
## See Also
[](ch_vectors), `Vec`, `VecDestroyVecs()`, `VecDuplicateVecsF90()`
## Level
beginner
## Location
src/vec/vec/interface/rvector.c
## Examples
src/vec/vec/tutorials/ex1f90.F90
src/vec/vec/tutorials/ex20f90.F90
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/rvector.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)