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.
25 lines
394 B
25 lines
394 B
4 years ago
|
#!/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 --force --id "$i"
|
||
|
done
|
||
|
|