Delete



DELETE removes the documents that match the WHERE clause. Without a WHERE clause, every document in the schema is deleted.

round-pushpin Deletes the document with a given Id.
DELETE FROM
    WordList:Word
WHERE
    Id = 1

round-pushpin Deletes documents based on a join. Name the alias of the schema to delete from after DELETE.
DELETE
    w
FROM
    WordList:Word as w
INNER JOIN WordList:Language as l
    ON l.Id = w.LanguageId
WHERE
    l.Name = 'Spanish'

round-pushpin Deletes every document in a schema.
DELETE FROM WordList:EnglishWords




SQL :: Alter Schema
Creates, alters and drops schemas.
SQL :: Expressions
Literals, operators, comments and variables in KBSQL.
SQL :: Insert
Insert creates new documents in a schema.
SQL :: Keywords
A breakdown of all of the statements and keywords supported by the query processor.
SQL :: Logical Connectors
Connects one logical expression to another.
SQL :: PageSize
Removed: schemas no longer have a page size.
SQL :: Select
Select statements are used to read (or query) data from the database.
SQL :: Update
Update changes fields of existing documents.
SQL :: Where
The where clause filters the documents read, updated or deleted by a statement.