Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created January 1, 2012 08:54
Show Gist options
  • Save ohadlevy/1546777 to your computer and use it in GitHub Desktop.
Save ohadlevy/1546777 to your computer and use it in GitHub Desktop.
#! /bin/sh
#
USER="ci"
PASS="ci"
FOREMAN_URL="https://foreman.domain.org"
FQDN=$1
curl -H "Accept:application/json" \
-k -u $USER:$PASS -X DELETE \
$FOREMAN_URL/hosts/$FQDN | prettify_json.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment