delete
Use greymatter delete to delete a specific object and its configurations from the Grey Matter mesh. Objects can be zone, proxy, domain, route, shared_rules, cluster, catalog-mesh, and catalog-service.

Usage

1
greymatter [GLOBAL OPTIONS] delete [OPTIONS] <object type> <object key>
Copied!

Sample Usage

1
$ greymatter delete domain domain-catalog
2
[info] 2019/07/10 03:47:57 Preferring --api.key for authentication
3
{
4
"domain_key": "domain-catalog",
5
"zone_key": "zone-default-zone",
6
"name": "catalog",
7
"port": 8080,
8
"redirects": null,
9
"gzip_enabled": false,
10
"cors_config": null,
11
"aliases": null,
12
"force_https": false,
13
"checksum": "82581e0c56c2ad385e84234fe118ccf8cf8deb1852a5aa318eab887e9a2717d2"
14
}
Copied!

Deep Delete

Use greymatter delete --deep to delete a specific object, its configuration, and all connected objects & configurations from the Grey Matter mesh. Objects can be zones, proxies, domains, routes, and shared_rules.

Deep Delete Usage

greymatter [GLOBAL OPTIONS] delete --deep <object type> <object key>
After executing the initial command, the user will be given a list of the objects to be deleted and prompted as to whether they wish to follow through. By replying with "n", deep delete can be cancelled.

Deep Delete Sample Usage

1
$ greymatter delete --deep zone test-zone
2
Deep deletion will delete the following objects:
3
Route(route-edge-jwt::0/jwt/)
4
Route(edge-jwt-security-route::0/services/jwt-security/latest/)
5
Route(edge-prometheus-route-slash::0/services/prometheus/latest)
6
Route(route-control-api::0/)
7
Route(edge-catalog-route::0/services/catalog/latest/)
8
Route(route-data-internal::0/)
9
Route(route-edge-jwt-slash::0/jwt)
10
Route(route-edge::0/services/edge/latest/)
11
Route(edge-control-api-route::0/services/control-api/latest/)
12
Route(route-jwt-security::0/)
13
Route(edge-prometheus-route::0/services/prometheus/latest/)
14
Route(edge-slo-route::0/services/slo/latest/)
15
Route(edge-slo-route-slash::0/services/slo/latest)
16
Route(route-catalog::0/)
17
Route(edge-dashboard-route-no-slash::0/)
18
Route(edge-internal-jwt-security-route-slash::0/services/internal-jwt-security/latest)
19
Route(catalog-internal-data-route::0/data/)
20
Route(route-dashboard::0/)
21
Route(edge-control-api-route-slash::0/services/control-api/latest)
22
Route(catalog-internal-data-route-slash::0/data)
23
Route(edge-data-internal-route-slash::0/services/data-internal/latest)
24
Route(edge-dashboard-route::0/services/dashboard/latest/)
25
Route(edge-internal-jwt-security-route::0/services/internal-jwt-security/latest/)
26
Route(route-internal-jwt-security::0/)
27
Route(edge-jwt-security-route-slash::0/services/jwt-security/latest)
28
Route(route-data-internal-internal-jwt-slash::0/jwt/)
29
Route(route-prometheus::0/)
30
Route(edge-dashboard-route-slash::0/services/dashboard/latest)
31
Route(edge-data-internal-route::0/services/data-internal/latest/)
32
Route(route-slo::0/)
33
Route(edge-catalog-route-slash::0/services/catalog/latest)
34
Route(route-data-internal-internal-jwt::0/jwt)
35
SharedRules(edge-dashboard-shared-rules:dashboard)
36
SharedRules(edge-prometheus-shared-rules:prometheus)
37
SharedRules(edge-data-internal-shared-rules:data-internal)
38
SharedRules(edge-internal-jwt-security-shared-rules:internal-jwt-security)
39
SharedRules(shared-rules-jwt-security:jwt-security)
40
SharedRules(shared-rules-internal-jwt-security:internal-jwt-security)
41
SharedRules(shared-rules-data-internal-to-internal-jwt:data-internal)
42
SharedRules(shared-rules-catalog:catalog)
43
SharedRules(edge-slo-shared-rules:slo)
44
SharedRules(shared-rules-dashboard:dashboard)
45
SharedRules(catalog-data-internal-shared-rules:data-internal)
46
SharedRules(shared-rules-data-internal:data-internal)
47
SharedRules(shared-rules-slo:slo)
48
SharedRules(shared-rules-edge:edge)
49
SharedRules(edge-jwt-security-shared-rules:jwt-security)
50
SharedRules(edge-catalog-shared-rules:catalog)
51
SharedRules(edge-control-api-shared-rules:control-api)
52
SharedRules(shared-rules-control-api:control-api)
53
SharedRules(shared-rules-prometheus:prometheus)
54
Listener(listener-dashboard-egress:dashboard)
55
Listener(listener-data-internal:data-internal)
56
Listener(listener-jwt-security-egress:jwt-security)
57
Listener(listener-prometheus-egress:prometheus)
58
Listener(listener-prometheus:prometheus)
59
Listener(listener-catalog-egress:catalog)
60
Listener(listener-catalog:catalog)
61
Listener(listener-internal-jwt-security:internal-jwt-security)
62
Listener(listener-data-internal-egress:data-internal)
63
Listener(listener-jwt-security:jwt-security)
64
Listener(edge-listener:edge)
65
Listener(edge-listener-egress:edge)
66
Listener(listener-slo:slo)
67
Listener(listener-dashboard:dashboard)
68
Listener(listener-control-api:control-api)
69
Listener(listener-control-api-egress:control-api)
70
Listener(listener-internal-jwt-security-egress:internal-jwt-security)
71
Listener(listener-slo-egress:slo)
72
Proxy(proxy-prometheus:prometheus)
73
Proxy(proxy-slo:slo)
74
Proxy(proxy-data-internal:data-internal)
75
Proxy(proxy-catalog:catalog)
76
Proxy(proxy-jwt-security:jwt-security)
77
Proxy(proxy-dashboard:dashboard)
78
Proxy(proxy-internal-jwt-security:internal-jwt-security)
79
Proxy(proxy-control-api:control-api)
80
Proxy(edge-proxy:edge)
81
Domain(domain-data-internal-egress:*:10909)
82
Domain(domain-slo-egress:*:10909)
83
Domain(domain-dashboard-egress:*:10909)
84
Domain(domain-jwt-security-egress:*:10909)
85
Domain(domain-catalog:*:10808)
86
Domain(edge:*:10808)
87
Domain(domain-prometheus:*:10808)
88
Domain(domain-jwt-security:*:10808)
89
Domain(domain-slo:*:10808)
90
Domain(domain-control-api:*:10808)
91
Domain(domain-control-api-egress:*:10909)
92
Domain(domain-data-internal:*:10808)
93
Domain(edge-egress:*:10909)
94
Domain(domain-prometheus-egress:*:10909)
95
Domain(domain-internal-jwt-security-egress:*:10909)
96
Domain(domain-internal-jwt-security:*:10808)
97
Domain(domain-catalog-egress:*:10909)
98
Domain(domain-dashboard:*:10808)
99
Cluster(cluster-control-api:control-api-service)
100
Cluster(edge-to-control-api-cluster:control-api)
101
Cluster(edge-to-catalog-cluster:catalog)
102
Cluster(catalog-to-data-internal-cluster:data-internal)
103
Cluster(data-internal-to-internal-jwt-cluster:internal-jwt-security)
104
Cluster(edge-to-prometheus-cluster:prometheus)
105
Cluster(cluster-catalog:catalog-service)
106
Cluster(edge-to-slo-cluster:slo)
107
Cluster(cluster-jwt-security:jwt-security-service)
108
Cluster(edge-to-dashboard-cluster:dashboard)
109
Cluster(edge-to-jwt-security-cluster:jwt-security)
110
Cluster(cluster-edge:edge)
111
Cluster(edge-to-data-internal-cluster:data-internal)
112
Cluster(cluster-dashboard:dashboard-service)
113
Cluster(cluster-prometheus:prometheus-service)
114
Cluster(cluster-internal-jwt-security:internal-jwt-security-service)
115
Cluster(edge-to-internal-jwt-security-cluster:internal-jwt-security)
116
Cluster(cluster-data-internal:data-internal-service)
117
Cluster(cluster-slo:slo-service)
118
Zone(test-zone:test-zone)
119
Proceed? [y/N]:
Copied!

Help

To list available commands run with the global help flag:
1
greymatter delete --help
Copied!

Questions

Need help with the CLI?
Create an account at Grey Matter Support to reach our team.
Last modified 1yr ago