Skip to main content

DROP STRUCTURE

Commands › Extracting entities from documents · Admins only, through sercha_define or a tenant file

Removes a structure and the pack entities its AS ENTITY levels declared.

Syntax​

DROP STRUCTURE [ IF EXISTS ] <ontology>.<name> [ RESTRICT ]

Parameters​

ParameterDescription
IF EXISTSNo error when there is no such structure.
<ontology>.<name>The structure. Must be qualified.
RESTRICTThe only behaviour; accepted for clarity.

Usage notes​

  • A structure that any corpus is organised by is refused. Drop or re-create those corpora first.
  • There is no CASCADE: a schema change never drops a corpus.

Examples​

DROP STRUCTURE IF EXISTS finance.filing
result
structure finance.filing dropped (with pack entity(ies) Client)

Not supported​

-- Refused by the engine
DROP STRUCTURE finance.filing CASCADE

See also​

CREATE STRUCTURE · DROP CORPUS