If you no longer want to be a part of a shared album, you can remove yourself by accessing the album's settings and selecting the option to leave the album.