:orphan:
# TSDestroy
Destroys the timestepper context that was created with `TSCreate()`.
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSDestroy(TS *ts)
```
Collective
## Input Parameter
- ***ts -*** the `TS` context obtained from `TSCreate()`
## See Also
[](ch_ts), `TS`, `TSCreate()`, `TSSetUp()`, `TSSolve()`
## Level
beginner
## Location
src/ts/interface/ts.c
## Examples
src/tao/unconstrained/tutorials/burgers_spectral.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/tutorials/ex1.c
src/ts/tutorials/ex10.c
src/ts/tutorials/ex11.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex12.c
src/ts/tutorials/ex13.c
src/ts/tutorials/ex14.c
src/ts/tutorials/ex15.c
src/ts/tutorials/ex16.c
## Implementations
TSDestroy_ARKIMEX in src/ts/impls/arkimex/arkimex.c
TSDestroy_BDF in src/ts/impls/bdf/bdf.c
TSDestroy_EIMEX in src/ts/impls/eimex/eimex.c
TSDestroy_Euler in src/ts/impls/explicit/euler/euler.c
TSDestroy_RK in src/ts/impls/explicit/rk/rk.c
TSDestroy_SSP in src/ts/impls/explicit/ssp/ssp.c
TSDestroy_GLEE in src/ts/impls/glee/glee.c
TSDestroy_Alpha in src/ts/impls/implicit/alpha/alpha1.c
TSDestroy_Alpha in src/ts/impls/implicit/alpha/alpha2.c
TSDestroy_DiscGrad in src/ts/impls/implicit/discgrad/tsdiscgrad.c
TSDestroy_GLLE in src/ts/impls/implicit/glle/glle.c
TSDestroy_IRK in src/ts/impls/implicit/irk/irk.c
TSDestroy_Radau5 in src/ts/impls/implicit/radau5/radau5.c
TSDestroy_Sundials in src/ts/impls/implicit/sundials/sundials.c
TSDestroy_Theta in src/ts/impls/implicit/theta/theta.c
TSDestroy_Mimex in src/ts/impls/mimex/mimex.c
TSDestroy_MPRK in src/ts/impls/multirate/mprk.c
TSDestroy_Pseudo in src/ts/impls/pseudo/posindep.c
TSDestroy_RosW in src/ts/impls/rosw/rosw.c
TSDestroy_BasicSymplectic in src/ts/impls/symplectic/basicsymplectic/basicsymplectic.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.c)
[Index of all TS routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)