Skip to main content

removeFromQueue

caution

If an uid is not provided, all tracks with the same uri will be removed.

function removeFromQueue(uri: ContextTrack[]): Promise<void>;

Parameters

NameTypeDescription
uriContextTrack[]Array of tracks to remove from queue.

Example

// Remove current track from queue
const currentTrack = Spicetify.Player.data.item;

await Spicetify.removeFromQueue([currentTrack]);

// Remove a track from queue
const trackUri = "spotify:track:4iV5W9uYEdYUVa79Axb7Rh";

await Spicetify.removeFromQueue([ { uri: trackUri } ]);