def doCleanupAction(self, domain='', webroot='', dbname='', dbuser='', dbhost=''):
 if domain:
  if os.path.isfile('/etc/nginx/sites-available/{0}'.format(domain)):
   removeNginxConf(self, domain)
 if webroot:
  deleteWebRoot(self, webroot)
 if dbname:
  if (not dbuser):
   raise SiteError('dbuser not provided')
   if (not dbhost):
    raise SiteError('dbhost not provided')
  deleteDB(self, dbname, dbuser, dbhost)

def doCleanupAction ( self , domain = '' , webroot = '' , dbname = '' , dbuser = '' , dbhost = '' ) : if domain : if os . path . isfile ( '/etc/nginx/sites-available/{0}' . format ( domain ) ) : removeNginxConf ( self , domain ) if webroot : deleteWebRoot ( self , webroot ) if dbname : if ( not dbuser ) : raise SiteError ( 'dbuser not provided' ) if ( not dbhost ) : raise SiteError ( 'dbhost not provided' ) deleteDB ( self , dbname , dbuser , dbhost )
removes the nginx configuration and database for the domain provided .