It's easy to put a song on repeat on Apple Music on your computer. You can also put a playlist or album on repeat.
You can delete songs from Apple Music on your Apple device if you no longer want them in your library.