How do I programmatically delete playlists in Apple Music on iOS?

Please say there is a way to programmatically delete playlists in Apple Music in iOS? I'll take any possible way or any hints whatsoever.

How do I programmatically delete playlists in Apple Music on iOS?
 
 
Q