Skip to content

Commit 8246884

Browse files
author
Naoki Kanazawa
committed
問題VMをすべて削除するコマンドを載せた
1 parent 85acd84 commit 8246884

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ netcon scoreserver instance list
4141
netcon vmms instance create --credential ${CREDENTIAL} --problem-id 564c4898-c55c-460f-ad0a-eab5a539514f --machine-image-name image-sc0
4242
netcon vmms instance delete --credential ${CREDENTIAL} --instance-name image-sc0-rxfe9
4343
```
44+
45+
## tips
46+
47+
すべての問題を削除したい場合
48+
49+
!!!ワンライナーで書くと事故の元なので必ず2行に分けましょう!!!
50+
51+
```bash
52+
PROBLEMS=$(netcon scoreserver instance list | jq -r '.[].name')
53+
echo $PROBLEMS | xargs -n1 ./netcon vmms instance delete --credential ${CREDENTIAL} --instance-name
54+
```

0 commit comments

Comments
 (0)