RemoveClass

Remove one empty node or customer connection category. Requires objects.delete permission.

An exact node target is its type and class, for example {"target":"image","class":"Photos"}.

For a connection, class names the source class, connection class, and destination class. target supplies the corresponding endpoint types.

{
  "class": {"src": "People", "connection": "AppearsIn", "dst": "Photos"},
  "target": {"src": "entity", "dst": "image"}
}

Metadata mutations require all five values for a connection. Class names are nonempty, cannot begin with _, and are matched without case sensitivity. Index selectors also include property and kind. With GetIndexes and GetAggregates you can supply only the fields you want to match, such as {"class":{"connection":"AppearsIn"},"target":{"dst":"image"}}.

The category must have no live objects, indexes, or aggregate definitions. Node categories must also have no dependent customer connection categories, even if those are empty. Remove the dependent indexes/categories explicitly; this command never deletes objects. After removal commits, the numeric category ID can be reused by a later class. A reused node category may have another node type. New object birth transactions keep old _uniqueid values from selecting replacement objects, while existing readers retain their original category snapshot.

[{"RemoveClass":{"target":"image","class":"Pictures"}}]

Success returns status: 0. Nonempty categories, dependent indexes/categories and invalid selectors fail the transaction.