Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 814 Bytes

File metadata and controls

28 lines (19 loc) · 814 Bytes

YQL - DROP CLASS

Removes a class from the schema.

Syntax

DROP CLASS <class> [IF EXISTS] [UNSAFE]
  • <class> — Defines the class you want to remove.
  • IF EXISTS — Prevents an error if the class does not exist.
  • UNSAFE — Forces removal even if the class contains vertices or edges. Without this keyword, the command refuses to drop a vertex or edge class that still has records, to avoid broken edges in the database.

NOTE: Bear in mind that the schema must remain coherent. For instance, avoid removing classes that are superclasses to others.

Examples

  • Remove the class Account:
DROP CLASS Account

For more information, see