Skip to content

Instantly share code, notes, and snippets.

@guypursey
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guypursey/71c0f5c80fae51daedd8 to your computer and use it in GitHub Desktop.
Save guypursey/71c0f5c80fae51daedd8 to your computer and use it in GitHub Desktop.
Remove file from Scriptogr.am via the API
# This script requires `curl` package to be installed.
# Replace `$APP_KEY` with the app key from your Scriptogr.am account below OR uncomment the line below and add the ID as a value to the variable. You can get the app key by adding your application on this page (when logged in): http://scriptogr.am/dashboard#developers
# $APP_KEY=
# Replace `$USER_ID` with the ID from your Scriptogr.am account below OR uncomment the line below and add the ID as a value to the variable. You can get your user ID from towards the bottom of this page (when logged in): http://scriptogr.am/dashboard#settings
# $USER_ID=
# Replace `$POST_NAME` with the name of the file you want to remove (minus the `.md` extension) OR uncomment the line below and add the extension-less filename as a value to the variable.
# $POST_NAME=
curl \
-d app_key=$APP_KEY \
-d user_id=$USER_ID \
-d filename="$POST_NAME.md" \
\
scriptogr.am/api/article/delete/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment