# 2023-04-10-14:37:45+0800 Delete unused external gardener gcp network


- Cause: unused gardener gcp network, see https://pingcap.feishu.cn/wiki/wikcn23M4pPvZQJAUdIPPiWucqg for more detail
- Operation:
external empty network:
```bash
Namespace                Network             Tenant              Cidr            Status     Clusters BackupCount PeeringCounts HowTo  Age
# Colopl
prod-1372813089188121301 gcp-us-central1     1326455380288475136 10.244.128.0/19 Hibernated          0           0             Delete 577d
# Catalyst Software
prod-1372813089188151289 gcp-us-central1     1372813089188151296 172.30.144.0/21 Hibernated          0           0             Delete 277d
# hedera
prod-1372813089188151290 gcp-us-central1     1372813089188151297 172.30.0.0/16   Hibernated          0           0             Delete 577d
# CRL
prod-1372813089188151295 gcp-asia-southeast1 1372813089188211281 172.25.128.0/18 Hibernated          0           0             Delete 487d
# Colopl
prod-1372813089188151316 gcp-asia-northeast1 1326455380288475136 10.240.128.0/18 Hibernated          0           0             Delete 553d
# pingcap
prod-1372813089188181292 gcp-us-west1        1372813089188301281 10.245.64.0/18  Hibernated          0           0             Delete 554d
prod-1372813089188481285 gcp-asia-southeast1 1372813089188451289 172.30.0.0/16   Hibernated          0           0             Delete 531d
# CAPCOM CO., LTD
prod-1372813089188841287 gcp-asia-northeast1 1372813089188871292 172.30.16.0/21  Hibernated          0           0             Delete 469d
# # CAPCOM CO., LTD
prod-1372813089189561285 gcp-us-west1        1372813089188871292 172.30.212.0/22 Hibernated          0           0             Delete 399d
# Syntax Data, LLC
prod-1372813089189831285 gcp-us-west1        1372813089190611284 172.30.168.0/21 Hibernated          0           0             Delete 441d
# Gamify Studios
prod-1372813089190341290 gcp-asia-southeast1 1372813089191541286 10.250.48.0/21  Hibernated          0           0             Delete 374d
# PingCAP-ChinaOutbound
prod-1372813089191241283 gcp-us-west1        1372813089193131282 172.30.212.0/22 Hibernated          0           0             Delete 40d
# PLAID
prod-1372813089198831287 gcp-us-west1        1372813089200871286 172.30.168.0/21 Hibernated          0           0             Delete 195d
# Peter's Org
prod-1372813089199221286 gcp-asia-southeast1 1372813089201261285 172.30.152.0/22 Hibernated          0           0             Delete 250d
# fatih's Org
prod-1372813089199731285 gcp-asia-southeast1 1372813089201771284 10.250.48.0/21  Hibernated          0           0             Delete 258d
# # fatih's Org
prod-1372813089199731285 gcp-us-central1     1372813089201771284 10.250.144.0/21 Hibernated          0           0             Delete 258d
# # fatih's Org
prod-1372813089199731285 gcp-us-west1        1372813089201771284 10.250.168.0/21 Hibernated          0           0             Delete 242d
# dbaastest3
prod-1372813089202551283 gcp-us-west1        1372813089187791289 10.250.168.0/21 Hibernated          0           0             Delete 18d
# iyan's Org
prod-1372813089203811283 gcp-asia-southeast1 1372813089205611282 172.30.152.0/22 Hibernated          0           0             Delete 218d
# dbaastest3
prod-1372813089206511387 gcp-asia-northeast1 1372813089187791289 10.250.16.0/21  Hibernated          0           0             Delete 19d
# dbaastest3
prod-1372813089206511387 gcp-us-central1     1372813089187791289 10.250.144.0/21 Hibernated          0           0             Delete 82d
# Jaru's Org
prod-1372813089206871398 gcp-asia-southeast1 1372813089208311975 172.30.24.0/22  Hibernated          0           0             Delete 81d
# CloverPOC
prod-1372813089206961331 gcp-us-central1     1372813089208341847 172.30.144.0/21 Hibernated          0           0             Delete 79d
```

Generate kubectl delete command
> cat list | awk '{print "kubectl delete network " $2 " --wait=false -n " $1 }'
```bash
kubectl delete network gcp-us-central1 --wait=false -n prod-1372813089188121301
kubectl delete network gcp-us-central1 --wait=false -n prod-1372813089188151289
kubectl delete network gcp-us-central1 --wait=false -n prod-1372813089188151290
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089188151295
kubectl delete network gcp-asia-northeast1 --wait=false -n prod-1372813089188151316
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089188181292
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089188481285
kubectl delete network gcp-asia-northeast1 --wait=false -n prod-1372813089188841287
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089189561285
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089189831285
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089190341290
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089191241283
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089198831287
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089199221286
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089199731285
kubectl delete network gcp-us-central1 --wait=false -n prod-1372813089199731285
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089199731285
kubectl delete network gcp-us-west1 --wait=false -n prod-1372813089202551283
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089203811283
kubectl delete network gcp-asia-northeast1 --wait=false -n prod-1372813089206511387
kubectl delete network gcp-us-central1 --wait=false -n prod-1372813089206511387
kubectl delete network gcp-asia-southeast1 --wait=false -n prod-1372813089206871398
kubectl delete network gcp-us-central1 --wait=false -n prod-1372813089206961331
```
- Impact: if user create cluster in these network maybe timeout
- Recovery operation: `NONE`
- Time window: `2023年 4月10日 星期一 16时00分00秒 CST ~ 2023年 4月10日 星期一 17时00分00秒 CST`