UltipaDocs
Products
Solutions
Resources
Company
Start Free Trial
UltipaDocs
Start Free Trial
  • Introduction
    • Overview
    • Node and Edge Patterns
    • Path Patterns
    • Quantified Paths
    • Shortest Paths
    • Graph Patterns
    • Overview
    • Typed Graph
    • Open Graph
    • Graph Sharding and Storage
    • Constraints
    • Unique Identifiers
    • INSERT
    • INSERT OVERWRITE
    • UPSERT
    • SET
    • REMOVE
    • DELETE
    • Query Composition
    • Result Table and Visualization
    • MATCH
    • OPTIONAL MATCH
    • FILTER
    • LET
    • FOR
    • ORDER BY
    • LIMIT
    • SKIP
    • CALL
    • RETURN
    • Composite Query
    • NEXT
    • All Functions
    • Scalar Functions
    • Path Functions
    • Aggregate Functions
    • Mathematical Functions
    • Trigonometric Functions
    • String Functions
    • List Functions
    • Datetime Functions
    • Spatial Functions
    • Label Functions
    • Record Functions
    • Table Functions
  • Operators
  • Predicates
    • CASE
    • NULLIF
    • COALESCE
    • LET Value Expression
    • Value Query Expression
    • Index
    • Full-text Index
    • Vector Index
    • Spatial Index
    • Overview
    • Managing HDC Graphs
    • HDC Graph Queries
  • Transaction
  • Trigger
  • Stored Procedure
    • Process
    • Session
    • Job
    • Execution Plan
    • Variables
    • Values and Types
    • Comments
    • Reserved Words
    • Syntactic Notation
  • Access Control
  • GQL Conformance
  1. Docs
  2. /
  3. ISO GQL
  4. /
  5. Data Modification

REMOVE

Overview

The REMOVE statement allows you to remove properties and labels on nodes and edges. These nodes or edges must first be retrieved using the MATCH statement.

The REMOVE statement only supports open graphs.

Example Graph

```tabbed-code Create%20the%20graph:::gql:::CREATE%20GRAPH%20myGraph%20ANY ===TAB=== Insert%20data%20to%20the%20graph:::gql:::INSERT%20(rowlock%3AUser%26Person%26Player%26Employee%20%7B_id%3A%20%22U01%22%2C%20name%3A%20%22rowlock%22%7D)%2C%0A%20%20%20%20%20%20%20(brainy%3AUser%20%7B_id%3A%20%22U02%22%2C%20name%3A%20%22Brainy%22%2C%20gender%3A%20%22male%22%7D)%2C%0A%20%20%20%20%20%20%20(purplechalk%3AUser%20%7B_id%3A%20%22U03%22%2C%20name%3A%20%22purplechalk%22%2C%20gender%3A%20%22female%22%7D)%2C%0A%20%20%20%20%20%20%20(mochaeach%3AUser%20%7B_id%3A%20%22U04%22%2C%20name%3A%20%22mochaeach%22%2C%20gender%3A%20%22female%22%7D)%2C%0A%20%20%20%20%20%20%20(c%3AClub%20%7B_id%3A%20%22C01%22%7D)%2C%0A%20%20%20%20%20%20%20(rowlock)-%5B%3AFollows%20%7BcreatedOn%3A%20date(%222024-01-05%22)%7D%5D-%3E(brainy)%2C%0A%20%20%20%20%20%20%20(purplechalk)-%5B%3AFollows%20%7BcreatedOn%3A%20date(%222024-02-01%22)%7D%5D-%3E(brainy)%2C%0A%20%20%20%20%20%20%20(mochaeach)-%5B%3AFollows%20%7BcreatedOn%3A%20date(%222024-02-10%22)%7D%5D-%3E(brainy)%2C%0A%20%20%20%20%20%20%20(brainy)-%5B%3AJoins%20%7BmemberNo%3A%201%7D%5D-%3E(c) ```

Removing Labels

To remove a label from a node:

GQL
MATCH (n:User {name: 'rowlock'})
REMOVE n:Person

To remove two labels from a node:

GQL
MATCH (n:User {name: 'rowlock'})
REMOVE n:Player, n:Employee

Removing Properties

To remove the specified properties:

GQL
MATCH (n:User {name: 'rowlock'})-[e:Follows]->(:User {name: 'Brainy'})
REMOVE n.gender, e.createdOn