---
name: "NJB_Delete_Track"
section: "3"
platform: "linux"
package: "libnjb1-doc"
version: "1.1-2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/NJB_Delete_Track"
---

# NJB\_Delete\_Track(3)

Delete an audio track from the NJB

## NAME

NJB\_Delete\_Track - Delete an audio track from the NJB

## LIBRARY

libnjb

## SYNOPSIS

\#include \<sys/types.h\> #include \<libnjb.h\>

extern int njb\_error

int NJB\_Delete\_Track (njb\_t **\*njb**, u\_int32\_t **trackid**)

## DESCRIPTION

This function deletes an audio track from the NJB.  The ID of the track to be deleted is passed in the **trackid** parameter.

This function also increments the NJB's library counter, provided it has not been incremented previously during the session.

## RETURN VALUES

This function returns 0 on success.  If a failure occurs, it returns -1 and sets **njb\_error**

- EO\_BADCOUNT

  The track was successfully deteled, but the NJB's library counter could not be updated.

- EO\_BADSTATUS

  The NJB returned a non-zero status.  The track was not deleted.

- EO\_USBCTL

  An I/O error occurred on the control pipe.  The track was not deleted.
