Scripts to use Equinix Bare Metal API
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.

24 lines
386 B

#!/bin/bash
# eqx-delete-project-devices
#
# Usage:
# eqx-delete-project-devices [project name]
# Example:
# eqx-delete-project-devices fooproject
EQXPROJECT="$1"
if [[ $1 == "" ]]
then \
echo -e "Need project name, such as:\n"
eqx-get-project-names
echo
exit
fi
for i in `eqx-get-project-devices-id "$EQXPROJECT"`
do \
echo "Deleting $i"
packet device delete --id "$i"
done