Console - DICTIONARY REMOVE

Removes the association from the database dictionary.

Syntax

  1. DICTIONARY REMOVE <key>
  • <key> Defines the key that you want to remove.

Example

  • In a database dictionary of U.S. presidents, remove the key for Barack Obama:

    1. orientdb> DICTIONARY REMOVE obama
    2.  
    3. Entry removed from the dictionary. Last value of entry was:
    4. ------------------------------------------------------------------------
    5. Class: Person id: 5:4 v.1
    6. ------------------------------------------------------------------------
    7. parent : null
    8. children : [Person@5:5{parent:Person@5:4,children:null,name:Malia Ann,
    9. surname:Obama,city:null}, Person@5:6{parent:Person@5:4,
    10. children:null,name:Natasha,surname:Obama,city:null}]
    11. name : Barack
    12. surname : Obama
    13. city : City@-6:2{name:Honolulu}
    14. ------------------------------------------------------------------------

You can display information for all keys stored in the database dictionary using the DICTIONARY KEY command. For more information on dictionaries and indexes, see Indexes.

For more information on other commands, see Console Commands.