:orphan: # PetscContainerDestroy Destroys a PETSc container object. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscContainerDestroy(PetscContainer *obj) ``` Collective ## Input Parameter - ***obj -*** an object that was created with `PetscContainerCreate()` ## Note If `PetscContainerSetUserDestroy()` was used to provide a user destroy object for the data provided with `PetscContainerSetPointer()` then that function is called to destroy the data. ## See Also `PetscContainerCreate()`, `PetscContainerSetUserDestroy()`, `PetscObject` ## Level advanced ## Location src/sys/objects/inherit.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/inherit.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)