removeFromQueue
tip
This works similarly to Spicetify.Platform.PlayerAPI.removeFromQueue
.
caution
If an uid
is not provided, all tracks with the same uri
will be removed.
function removeFromQueue(uri: ContextTrack[]): Promise<void>;
Parameters
Name | Type | Description |
---|---|---|
uri | ContextTrack[] | 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 } ]);