pool.v0.trr379.de-knowledge/code/delete_record

12 lines
188 B
Bash
Executable file

#!/bin/bash
set -u -e
scope="$1"
pid="$2"
api="https://pool.v0.trr379.de/api"
curl \
-X 'DELETE' \
-H "X-DumpThings-Token: ${DUMPTHINGS_TOKEN}" \
"${api}/${scope}/record?pid=${pid}"