Cmdlets for Couchbase

Build 24.0.9060

Remove-Couchbase Cmdlet

Parameters   Output Objects  

Deletes Couchbase data.

Syntax

Remove-Couchbase [parameters]

Remarks

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

$conn = Connect-Couchbase -User 'myusername' -Password 'mypassword' -Server 'http://couchbase40'
Remove-Couchbase -Connection $conn -Table "Customer" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-Couchbase -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Couchbase -Connection $conn -Table Customer -Where "CustomerId = '12345'" | Remove-Couchbase

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