if(item == null) return 0; HashMap options = new HashMap(); if(! item.getClass().equals(WorkspaceInfo.class)) return Errno.ENOTDIR; try { this.ems.workspaceManager.deleteWorkspace(this.ems.userAuth, ((WorkspaceInfo)item).getUuid(), options); } catch(Exception e) { throw new FuseException("Can not remove directory: " + path); }