Contents

removeItems(_:)

Removes an array of media items from the user’s Shazam library.

Declaration

final func removeItems(_ items: [SHMediaItem]) async throws

Parameters

  • items:

    An array containing the Shmediaitem objects to remove from the library.

Discussion

Apps can only remove media items that it added to the library with addItems(_:).

This throws SHError.Code.mediaLibrarySyncFailed if the system can’t remove at least one SHMediaItem or if an error occurred during the removal. In that case, the system doesn’t remove any items from the library.

See Also

Managing the items in the library