Is this by chance related to The tables app, when I insert a link, cuts it out?
I assume, you want to do it completely using HTTP request from your client using some bash script and curl or so…
Just a quick glance brings me to the delete route of the controller as well as this and probably something here.
I would try to reverse engineer the API calls of the browser to get an idea on what might be the way to go.
Chris