update deleteAlbumAtIndex method in LibraryAPI class