|
|
@@ -41,12 +41,9 @@ def cmd_destroy(self): |
|
|
|
if not self.args.quiet and len(paths) > 1: |
|
|
|
printf("Destroying %s\n", path) |
|
|
|
|
|
|
|
if self.args.remove: |
|
|
|
try: |
|
|
|
count = self.client.stream_remove(path) |
|
|
|
except nilmdb.client.ClientError as e: |
|
|
|
self.die("error removing data: %s", str(e)) |
|
|
|
try: |
|
|
|
if self.args.remove: |
|
|
|
count = self.client.stream_remove(path) |
|
|
|
self.client.stream_destroy(path) |
|
|
|
except nilmdb.client.ClientError as e: |
|
|
|
self.die("error destroying stream: %s", str(e)) |