public static function packageRemove($packageInfo) {
		
		// run the console and config inits
		self::init();
		
		// see if the package has a listener and remove it
		self::scanForListener($packageInfo["pathBase"],true);
		
		// see if the package is a pattern engine and remove the rule
		if ($packageInfo["type"] == "patternlab-patternengine") {
			self::scanForPatternEngineRule($packageInfo["pathBase"],true);
		}
		
		// remove the component package file if it exists
		$jsonFile = Config::getOption("componentDir")."/packages/".str_replace("/","-",$packageInfo["name"]).".json";
		if (file_exists($jsonFile)) {
			unlink($jsonFile);
		}
		
	}