dropplaylists
Clear all queued items from audio, video, and picture playlists without interrupting the currently playing track. Inspect with getplaylist first if content matters.
Instructions
Empty all queues: clear the audio, video and picture playlists in one call. The current item keeps playing — only the queued items behind it are removed — so playback is never interrupted. Not undoable; inspect with getplaylist first if the content matters. Returns the player-state snapshot — whatever was playing still is, with nothing queued behind it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Target Kodi instance. Omitted uses the default ("(null)"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Playback state; "stopped" means nothing is loaded. | |
| type | No | The active player kind. | |
| media | No | Real media type (song/episode/movie/musicvideo/…); "unknown" for an off-library file. | |
| id | No | Library id of the playing item; -1 when off-library. | |
| file | No | Path of the playing item. | |
| label | No | Kodi's display label for the item. | |
| title | No | The item's title (may be empty). | |
| showtitle | No | TV episode: the show's name. | |
| season | No | TV episode: season number. | |
| episode | No | TV episode: episode number. | |
| album | No | Song: the album name. | |
| artist | No | Song: the performers, an array of strings. | |
| track | No | Song: track number on the album. | |
| time | No | Playback position { hours, minutes, seconds, milliseconds }. | |
| totaltime | No | The item's duration, same shape as time. |