Cmdlets for Neo4j

Build 24.0.8963

Remove-Neo4j Cmdlet

Parameters   Output Objects  

Deletes Neo4j data.

Syntax

Remove-Neo4j [parameters]

Remarks

The Remove-Neo4j cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Neo4j data.

$conn = Connect-Neo4j -server "localhost" -port "7474" -user "neo4j" -password "password"
Remove-Neo4j -Connection $conn -Table "ProductCategory" -Id "6"
The Where parameter can also be used to specify the primary key:
Remove-Neo4j -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Neo4j -Connection $conn -Table ProductCategory -Where "CategoryOwner = 'Bob'" | Remove-Neo4j

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963