:orphan: # PetscDeviceDestroy Free a `PetscDevice` ## Synopsis ``` #include PetscErrorCode PetscDeviceDestroy(PetscDevice *device) ``` Not Collective ## Input Parameter - ***device -*** The `PetscDevice` ## See Also `PetscDevice`, `PetscDeviceCreate()`, `PetscDeviceConfigure()`, `PetscDeviceView()`, `PetscDeviceGetType()`, `PetscDeviceGetDeviceId()` ## Level beginner ## Location src/sys/objects/device/interface/device.cxx --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/device/interface/device.cxx) [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)