Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TransIP Stack - Clear Trash
#!/bin/sh
STACK_URL=myuser.stackstorage.com
STACK_USER=myuser
STACK_PASSWORD=nooneknowsthis
curl \
--silent \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '[{"action":"delete","all":true,"path":"/","query":""}]' \
-u "${STACK_USER}:${STACK_PASSWORD}" \
https://$STACK_URL/api/trashbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.