diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index b4c14b228..67d3ee4e5 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -2612,6 +2612,15 @@ def submitWebsiteDeletion(self, userID=None, data=None): execPath = execPath + " deleteVirtualHostConfigurations --virtualHostName " + websiteName ProcessUtilities.popenExecutioner(execPath) + ### delete site from dgdrive backups + + try: + + from websiteFunctions.models import GDriveSites + GDriveSites.objects.filter(domain=websiteName).delete() + except: + pass + data_ret = {'status': 1, 'websiteDeleteStatus': 1, 'error_message': "None"} json_data = json.dumps(data_ret) return HttpResponse(json_data)