You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eqx/eqx-delete-project

35 lines
466 B

#!/bin/bash
# eqx-delete-project
# Delete an Equinix Project.
#
# Usage:
# eqx-delete-project [name]
# Example:
# eqx-delete-project fooproject
#set -x
EQXPROJECT="$1"
if [[ $1 == "" ]]
then \
echo -e "Need project name, such as:\n"
eqx-get-project-names
echo
exit
fi
EQXPROJECTID=`eqx-get-project-uuid $EQXPROJECT`
eqx-delete-project-devices $EQXPROJECT
packet \
project \
delete \
--id \
$EQXPROJECTID \
2>/dev/null
exit