:orphan: # ISDestroy Destroys an index set. ## Synopsis ``` #include "petscis.h" PetscErrorCode ISDestroy(IS *is) ``` Collective ## Input Parameter - ***is -*** the index set ## See Also `IS`, `ISCreateGeneral()`, `ISCreateStride()`, `ISCreateBlocked()` ## Level beginner ## Location src/vec/is/is/interface/index.c ## Examples src/dm/field/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex10.c
src/dm/impls/plex/tutorials/ex1f90.F90
src/dm/label/tutorials/ex1.c
src/dm/label/tutorials/ex1f90.F90
src/dm/tutorials/ex14.c
src/dm/tutorials/ex22.c
src/dm/tutorials/ex6.c
src/dm/tutorials/swarm_ex3.c
src/ksp/ksp/tutorials/ex10.c
## Implementations ISDestroy_Block in src/vec/is/is/impls/block/block.c
ISDestroy_General in src/vec/is/is/impls/general/general.c
ISDestroy_Stride in src/vec/is/is/impls/stride/stride.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/interface/index.c) [Index of all IS routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)