---
name: "XmDestroyPixmap"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmDestroyPixmap"
---

# XmDestroyPixmap(3)

A pixmap caching function that removes a pixmap from the pixmap cache

## NAME

**XmDestroyPixmap** — A pixmap caching function that removes a pixmap from the pixmap cache

## SYNOPSIS

```
#include <Xm/Xm.h>
Boolean XmDestroyPixmap(
Screen * screen,
Pixmap pixmap);
```

## DESCRIPTION

**XmDestroyPixmap** removes pixmaps that are no longer used. Pixmaps are completely freed only when there is no further reference to them.

- *screen*

  Specifies the display screen for which the pixmap was requested

- *pixmap*

  Specifies the pixmap to be destroyed

## RETURN

Returns True when successful; returns False if there is no matching screen and pixmap in the pixmap cache.

## RELATED

[**XmInstallImage**(3)](/XmInstallImage/3.md), [**XmUninstallImage**(3)](/XmUninstallImage/3.md), and [**XmGetPixmap**(3)](/XmGetPixmap/3.md).
