@staticmethod
def delete_all_workflows(wf_ctrl, force=True):
    """
        Delete all the workflows.
        If force is set to True: the call will block until the workflows are
        deleted. With force set to True, if a workflow can not be deleted
        properly it is deleted from Soma-workflow database. However, if some
        jobs are still running they will not be killed. In this case the return
        value is False.

        Parameters
        ----------
        wf_ctrl: client.WorkflowController

        force: bool

        Returns
        -------
        success: bool
        """
    deleted_properly = True
    while wf_ctrl.workflows():
        wf_id = wf_ctrl.workflows().keys()[0]
        deleted_properly = deleted_properly and wf_ctrl.delete_workflow(wf_id,
            force)
    return deleted_properly
