---
name: "PS_delete"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_delete"
---

# PS\_delete(3)

Deletes all resources of a PostScript document

## NAME

PS\_delete — Deletes all resources of a PostScript document

## SYNOPSIS

\#include \<pslib.h\>

void PS\_delete(PSDoc \*psdoc)

## DESCRIPTION

Mainly frees memory used by the document. Also closes a file, if  it was not closed before with [PS\_close(3)](/PS_close/3.md). You should in any case close  the file with [PS\_close(3)](/PS_close/3.md) before, because [PS\_close(3)](/PS_close/3.md) not just closes the  file but also outputs a last line containing the PostScript comment with  the number of pages in the document. Without this comment, a PostScript  viewer may not show the number of pages propperly.

## SEE ALSO

[PS\_close(3)](/PS_close/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
