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

# delphvia(3)

delete a physical via

## NAME

delphvia - delete a physical via

## SYNOPSYS

```
#include "mph.h"
int delphvia(ptfig, ptvia)
phfig_list ∗ptfig;
phvia_list ∗ptvia;
```

## PARAMETERS

- *ptfig*

  Pointer to the figure in which the via should be deleted

- *ptvia*

  Pointer to the via to be deleted.

## DESCRIPTION

**delphvia** delete the via pointed to by *ptvia* in the figure  pointed to by *ptfig*. The list consistency is maintainded, and the space freed.

## RETURN VALUE

**delphvia** returns **1** if the via has been deleted, **0** if no such via exists in the list.

## EXAMPLE

```
#include "mph.h"
char ∗was_existing(ptfig, ptvia)
phfig_list ∗ptfig;
phvia_list ∗ptvia;
{
   /∗ if only one exists, it's this one ∗/
   return delphvia(ptfig, ptvia) ? "you just killed it!"
                                 : "wasn't here anyway";
}
```

## SEE ALSO

**mbk**(1), [**phfig**(3)](/phfig/3.md), [**phvia**(3)](/phvia/3.md), [**addphvia**(3)](/addphvia/3.md).
