Skip to main content

DELETE

Deletes an instance or instances of a resource.

See also:
[ StackQL Resource Hierarchy ]


Syntax

deleteStatement::=

DELETEqueryHintFROMmultipartIdentifierWHEREexpressionexpression';'

 

DELETE FROM <multipartIdentifier>
WHERE <expression> ;

Examples

Basic DELETE Statement

Run a basic DELETE statement to remove a deployed resource in an authenticated session.

-- Delete a Compute Engine resource instance by name
DELETE FROM google.compute.instances
WHERE instance = 'demo-instance-1'
AND project = 'stackql-demo' AND zone = 'australia-southeast1-a';