Logo
OCI NoSQL Playground API Documentation

3.3. Delete a single row from the table, by primary key.

DELETE {{baseUrl}}/tables/:tableNameOrId/rows?compartmentId={{compartment_ocid}}&key=id:1&isGetReturnRow=false&timeoutInMs=5000

Delete a single row from the table, by primary key.

 

Body PARAM

Key Datatype Required Description 
compartmentId
string The ID of a table's compartment. When a table is identified by name, the compartmentId is often needed to provide context for interpreting the name.
key
string (Required) An array of strings, each of the format "column-name:value", representing the primary key of the row.
key
string (Required) An array of strings, each of the format "column-name:value", representing the primary key of the row.
isGetReturnRow
boolean If true, and the operation fails due to an option setting (ifVersion et al), then the existing row will be returned.
timeoutInMs
number Timeout setting for this operation.



HEADERS

Key Datatype Required Description 
if-match
boolean For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
Curl
curl -X DELETE 'https://nosql.region.oci.oraclecloud.com/20190828/tables/:tableNameOrId/rows?compartmentId=compartment_ocid&key=id:1&isGetReturnRow=false&timeoutInMs=5000?compartmentId=compartment_ocid&key=id:1&key=id in velit&isGetReturnRow=false&timeoutInMs=5000' -H 'if-match: false' -H 'opc-request-id: $randomUUID' -H 'Accept: application/json'

ENDPOINTS