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)
Remove a file or directory from the workspace.
dataset/ETHPy150Open tethysplatform/tethys/tethys_apps/base/workspace.py/TethysWorkspace.remove