def remove(self, item):
        # Sanitize to prevent backing into other directories or entering the home directory
        full_path = item.replace('../', '').replace('./', '').\
                         replace('..\\', '').replace('.\\', '').\
                         replace('~/', '').replace('~\\', '')

        if self._path not in full_path:
            full_path = os.path.join(self._path, full_path)

        if os.path.isdir(full_path):
            shutil.rmtree(full_path)
        elif os.path.isfile(full_path):
            os.remove(full_path)
Dispatches the XML-RPC method.
dataset/ETHPy150Open tethysplatform/tethys/tethys_apps/base/workspace.py/TethysWorkspace.remove--crossover with--dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/SimpleXMLRPCServer.py/SimpleXMLRPCDispatcher._dispatch