#!/usr/bin/python3
import os
import subprocess

pv_str = os.popen("kubectl get -n default pv | grep harbor | awk '$1 > 0 {print $1}'").read()
print(pv_str)
pv_list = pv_str.split('\n')
i = 0
for pv in pv_list:
    print(pv)
    # os.system(f"kubectl delete -n {ns} pv {pv}")
    os.system(f"kubectl delete pv {pv}")
