CDO$HELP.HLB  —  CDO Commands, DELETE  CONTEXT
    Format

      DELETE  CONTEXT  [ qualifier ] ...   context-name ,... .

1  –  Parameters

1.1  –  context-name

    Specifies the context you are deleting.

2  –  Qualifiers

2.1    /PARENTS

    Format options:

       /PARENTS
       /NOPARENTS (default)

    Specifies whether CDO deletes parents. If you have defined a top
    collection for the context, CDO cannot delete a parent that is
    also a parent of an element outside this collection or collection
    hierarchy.

2.2    /LOG

    Format options:

       /LOG
       /NOLOG (default)

    Specifies whether CDO displays text confirming that the context
    is deleted.

3  –  Description

    The DELETE CONTEXT command deletes a context.

    Because a context is a nonversioned element, CDO does not accept
    a branch designation or a version number in the context name.

    If a context is a child, you must delete its immediate parent
    before you delete the context. If the context's immediate parent
    is a child of another element, you must trace the relationships
    back until you reach the element that has no parents.

    If you delete your current context, CDO sets a null value for the
    current context before deleting the context.

    An error occurs if you attempt to delete a context that has
    opened files or reserved elements. The SHOW CONTEXT or SHOW
    RESERVATIONS command indicates whether this condition exists.

4  –  Examples

  CDO>  DELETE CONTEXT A_CONTEXT.

      In this example, the DELETE CONTEXT command deletes the A_
      CONTEXT context.
Close Help