Gemstone Data Library
Show/Hide TOC

# SecureTableOperations T DeleteRecord(ClaimsPrincipal, RecordRestriction, NullableBoolean) Method

Deletes the records referenced by the specified restriction.

## Definition

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

    public int DeleteRecord(
    	ClaimsPrincipal principal,
    	RecordRestriction? restriction,
    	bool? applyRootQueryRestriction = null
    )

VB
View Source Request Example

    Public Function DeleteRecord (
    	principal As ClaimsPrincipal,
    	restriction As RecordRestriction,
    	Optional applyRootQueryRestriction As Boolean? = Nothing
    ) As Integer

C++
View Source Request Example

    public:
    int DeleteRecord(
    	ClaimsPrincipal^ principal,
    	RecordRestriction^ restriction,
    	Nullable<bool> applyRootQueryRestriction = nullptr
    )

JavaScript
View Source Request Example

    function DeleteRecord(principal, restriction, applyRootQueryRestriction);

#### Parameters

principal ClaimsPrincipal
  Claims principal which is making the request.
restriction RecordRestriction
  Record restriction to apply
applyRootQueryRestriction Nullable Boolean (Optional)
  Flag that determines if any existing RootQueryRestriction should be applied. Defaults to ApplyRootQueryRestrictionToDeletes setting.

#### Return Value

Int32
Number of rows affected.

## Remarks

If any of the restriction parameters reference a table field that is modeled with either an EncryptDataAttribute or FieldDataTypeAttribute, then the function GetInterpretedFieldValue(String, Object) will need to be called, replacing the target parameter with the returned value so that the field value will be properly set prior to executing the database function.

## Exceptions

ArgumentNullException | restriction cannot be null.

## See Also

#### Reference

SecureTableOperationsT Class
DeleteRecord Overload
Gemstone.Data.Model Namespace