:orphan:
# PetscSectionDestroy
Frees a `PetscSection`
## Synopsis
```
#include "petscsection.h"
PetscErrorCode PetscSectionDestroy(PetscSection *s)
```
Not Collective
## Input Parameter
- ***s -*** the `PetscSection`
## See Also
[PetscSection](sec_petscsection), `PetscSection`, `PetscSectionCreate()`, `PetscSectionReset()`
## Level
beginner
## Location
src/vec/is/section/interface/section.c
## Examples
src/dm/impls/plex/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex14.c
src/dm/impls/plex/tutorials/ex1f90.F90
src/dm/impls/plex/tutorials/ex6.c
src/dm/impls/plex/tutorials/ex7.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex21.c
src/snes/tutorials/ex7.c
src/ts/tutorials/ex11.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex18.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/section/interface/section.c)
[Index of all PetscSection routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)