Deleting google sheets row with sheet.best with KBM

Hi Guys,

Im trying to use this method

# Basic Delete
curl 'https://sheet.best/api/sheets/cf969697-682a-40e3-bad4-d54803eeeacf/2' -X DELETE

i tried this apple Skript:
set apiUrl to "https://sheet.best/api/sheets/cf969697-682a-40e3-bad4-d543eeeacf/2"

set shellCommand to "curl -X DELETE " & quoted form of apiUrl
do shell script shellCommand

But this doesnt work. Anyone know how i can solve this?

Your AppleScript looks OK so there is likely something else is going on. The URL doesn't work for me (maybe that is intentional?) so I couldn't test it further.

You could just put the URL in a Keyboard Maestro URL variable and use the Execute a Shell Script action to execute

curl -X DELETE "$KMVAR_URL"

which should work for any URL that doesn't include any valid URL (ie, already properly URL encoded so it does not have things like " in it).