#NEWLINE# def uninstallwp_plugin( self , plugin_name , data ) : #NEWLINE# #INDENT# ee_site_webroot = data [ 'webroot' ] #NEWLINE# Log . debug ( self , 'Uninstalling plugin {0}, please wait...' . format ( plugin_name ) ) #NEWLINE# EEFileUtils . chdir ( self , '{0}/htdocs/' . format ( ee_site_webroot ) ) #NEWLINE# Log . info ( self , 'Uninstalling plugin {0}, please wait...' . format ( self ) ) #NEWLINE# try : #NEWLINE# #INDENT# EEShellExec . cmd_exec ( self , ( 'php {0} plugin ' . format ( EEVariables . ee_wpcli_path ) + '--allow-root deactivate {0}' . format ( plugin_name ) ) ) #NEWLINE# EEShellExec . cmd_exec ( self , ( 'php {0} plugin ' . format ( EEVariables . ee_wpcli_path ) + '--allow-root uninstall {0}' . format ( plugin_name ) ) ) #NEWLINE# #UNINDENT# except CommandExecutionError as e : #NEWLINE# #INDENT# raise SiteError ( 'plugin uninstall failed' )