---
name: "NJB_Delete_Playlist"
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_Playlist"
---

# NJB\_Delete\_Playlist(3)

Delete a playlist from the NJB

## NAME

NJB\_Delete\_Playlist - Delete a playlist from the NJB

## LIBRARY

libnjb

## SYNOPSIS

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

extern int njb\_error

int NJB\_Delete\_Playlist (njb\_t  **\*njb**, u\_int32\_t **plid**)

## DESCRIPTION

This function deletes the playlist identified by the ID **plid** from the NJB.  The IDs of existing playlists are obtained via the **NJB\_Get\_Playlists**(3) function.

## RETURN VALUES

Returns 0 on success.  If a failure occurs, -1 is returned an **njb\_error** is set.

- EO\_BADSTATUS

  Non-zero status returned by the NJB (the playlist ID may be invalid).

- EO\_USBCTL

  An I/O error occurred on the control data pipe.

## SEE ALSO

NJB\_Get\_Playlists(3)
