update the deleteAlbumAtIndex method in LibraryAPI