spotify_cli/endpoints/shows/
remove_users_saved_shows.rs

1use crate::http::api::SpotifyApi;
2use crate::http::client::HttpError;
3use crate::http::endpoints::Endpoint;
4use serde_json::Value;
5
6/// Remove shows from user's library
7pub async fn remove_shows(
8    client: &SpotifyApi,
9    show_ids: &[String],
10) -> Result<Option<Value>, HttpError> {
11    let ids = show_ids.join(",");
12    client
13        .delete(&Endpoint::SavedShowsIds { ids: &ids }.path())
14        .await
15}