---
name: "dtk_destroy_shape"
section: "3"
platform: "linux"
package: "libdrawtk-dev"
version: "2.0-2.1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dtk_destroy_shape"
---

# dtk\_destroy\_shape(3)

Destroy a shape

## NAME

dtk\_destroy\_shape - Destroy a shape

## SYNOPSIS

**#include \<drawtk.h\>**

**void dtk\_destroy\_shape(const dtk\_hshape** *shp***);**\

## DESCRIPTION

**dtk\_destroy\_shape**() destroys the shape referenced by *shp*. If *shp* is *NULL* the function returns without doing anything.

## RETURN VALUE

None.

## SEE ALSO

[**dtk\_create\_shape**(3)](/dtk_create_shape/3.md)
