---
name: "delphfig"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/delphfig"
---

# delphfig(3)

delete and free a physical figure

## NAME

delphfig - delete and free a physical figure

## SYNOPSYS

```
#include "mph.h"
int delphfig(figname)
char ∗figname;
```

## PARAMETER

- *figname*

  Name of the figure to be deleted

## DESCRIPTION

**delphfig** deletes the figure called *figname* from the list of physical figure in memory. All the lists of elements belonging to the figure are also deleted and freed.

## RETURN VALUE

**delphfig** returns **1** if the figure was delete, and **0** if no figure called *figname* was present in memory.

## EXAMPLE

```
#include "mph.h"
void delete_na2_y()
{
	if (delphfig("na2_y"))
		(void)fputs("deleted na2_y successfully", stdout);
	else
		(void)fputs("na2_y not present in ram !", stdout);
}
```

## SEE ALSO

**mbk**(1), [**phfig**(3)](/phfig/3.md), [**addphfig**(3)](/addphfig/3.md), [**getphfig**(3)](/getphfig/3.md), [**loadphfig**(3)](/loadphfig/3.md), [**savephfig**(3)](/savephfig/3.md), [**flattenphfig**(3)](/flattenphfig/3.md), [**rflattenphfig**(3)](/rflattenphfig/3.md).
