'Removes a workspace. If the workspace to be deleted is the one
selected, it moves you to the one above it on the list. If there
aren\'t more workspaces left, you will be forced to create one.
The clears and refreshes
sidebar'

def remove_workspace(self, button, ws_name):

    model.api.log(('Removing    Workspace:    %s' % ws_name))
    server_response = self.getWorkspaceManager().removeWorkspace(ws_name)
    if server_response:
        self.ws_sidebar.clear_sidebar()
        self.ws_sidebar.refresh_sidebar()
        available_workspaces = self.serverIO.get_workspaces_names()
        if available_workspaces:
            self.select_last_workspace_in_list(available_workspaces)
        else:
            self.handle_no_active_workspace()
