Gemstone Data Library
Show/Hide TOC

# ITableOperationsDeleteRecordAsync(Object, CancellationToken) Method

Deletes the specified modeled table record from the database.

## Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.177 -- Release Build+d96749616716c7e31d7afb14792fd635b01e16cd
C#
View Source Request Example

    Task<int> DeleteRecordAsync(
    	Object record,
    	CancellationToken cancellationToken
    )

VB
View Source Request Example

    Function DeleteRecordAsync (
    	record As Object,
    	cancellationToken As CancellationToken
    ) As Task(Of Integer)

C++
View Source Request Example

    Task<int>^ DeleteRecordAsync(
    	Object^ record,
    	CancellationToken cancellationToken
    )

JavaScript
View Source Request Example

    function DeleteRecordAsync(record, cancellationToken);

#### Parameters

record Object
  Record to delete.
cancellationToken CancellationToken
  Propagates notification that operations should be canceled.

#### Return Value

Task Int32
Number of rows affected.

## See Also

#### Reference

ITableOperations Interface
DeleteRecordAsync Overload
Gemstone.Data.Model Namespace