Skip to content

How to delete Images the Right Way

Praful Rana edited this page Jul 25, 2013 · 3 revisions

Curl the /token route on the api server to get a token. /Volumes/praful

$curl api.runnable.com/token -X POST -d "username=praful" -d "password=secret" {"access_token":"c94c6643-3d18-4dc5-9e1d-5a5b4ea1b9f8"}

Curl the /runnables/[runnableid] route to delete that image EX: /Volumes/praful

$curl -H "runnable-token:c94c6643-3d18-4dc5-9e1d-5a5b4ea1b9f8" api.runnable.com/runnables/Ue34iD8F3uUqAAMq -X DELETE {"message":"runnable deleted"}

Clone this wiki locally