blob: 0287ac84b627227a3c8a283be4d4ef3901405dcc [file] [log] [blame]
Srikanth Vavilapallib2a50192017-02-03 18:25:59 +00001import os
2import sys
3sys.path.append("/opt/xos")
4os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings")
5import django
6from core.models import *
7#from services.exampleservice.models import *
8from services.monitoring.models import *
9django.setup()
10
11for o in CeilometerService.get_service_objects().all():
12 print "Delete", o
13 o.delete()
14
15print "wait for perma-deletion"
16
17while MonitoringChannel.deleted_objects.all().exists() or CeilometerService.deleted_objects.all().exists():
18 pass