def unfollow(unfollowed)
      if unfollowed.is_a? Array
        ids = unfollowed.map(&:id).join(',')
        type = unfollowed.first.type
      else
        ids = unfollowed.id
        type = unfollowed.type
      end

      url = if type == 'playlist'
        "users/#{unfollowed.owner.id}/playlists/#{unfollowed.id}/followers"
      else
        "me/following?type=#{type}&ids=#{ids}"
      end

      User.oauth_delete(@id, url)
      unfollowed
    end
def unfollow(unfollowed)
      if unfollowed.is_a? Array
        ids = unfollowed.map(&:id).join(',')
        type = unfollowed.first.type
      else
        ids = unfollowed.id
        type = unfollowed.type
      end

      url = if type == 'playlist'
        "users/#{unfollowed.owner.id}/playlists/#{unfollowed.id}/followers"
      else
        "me/following?type=#{type}&ids=#{ids}"
      end

      User.oauth_delete(@id, url)
      unfollowed
    end
Remove the current user as a follower of one or more artists, other Spotify users or a playlist. Unfollowing artists or users require the *user-follow-modify* scope.
 Unfollowing a publicly followed playlist requires the *playlist-modify-public* scope; unfollowing a privately followed playlist requires the *playlist-modify-private* scope.

 @note Note that the scopes you provide for playlists relate only to whether the current user is following the playlist publicly or privately (i.e. showing others what they are following), not whether the playlist itself is public or private.

 @param unfollowed [Artist, Array<Artist>, User, Array<User>, Playlist] The artists, users or playlist to unfollow
 @return [Artist, Array<Artist>, User, Array<User>, Playlist]

 @example
           artists = RSpotify::Artist.search('John')
           user.unfollow(artists)

           playlist = RSpotify::Playlist.search('Movie').first
           user.unfollow(playlist)