---
name: "icetDestroyContext"
section: "3"
platform: "linux"
package: "paraview"
version: "5.13.2+dfsg-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/icetDestroyContext"
---

# icetDestroyContext(3)

## NAME

**icetDestroyContext -- delete a context.**

## Synopsis

\#include \<IceT.h\>

| | | |
| --- | --- | --- |
| void **icetDestroyContext**( | **IceTContext** | *context* ); |

## Description

Frees the memory required to hold the state of *context* and removes *context* from existence.

## Errors

None.

## Warnings

None.

## Bugs

**icetDestroyContext** will happily delete the current context for you, but subsequent calls to most other **IceT** functions will probably result in seg-faults unless you make another context current with **icetCreateContext** or **icetSetContext**. The most notable execptions are the functions with names matching **icet\*Context**, which will work correctly without a proper current context.

## Notes

Behavior is undefined if *context* has never been created or has already been destroyed.

## Copyright

Copyright (C)2003 Sandia Corporation

Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This source code is released under the New BSD License.

## See Also

[*icetCreateContext*(3)](/icetCreateContext/3.md)
