Table of Contents

TTMSMCPStellarDS.ClearTable Method

Deletes every record of a table while leaving the table and its fields in place.

API unit family: TMS.MCP.StellarDS Declaring type: TTMSMCPStellarDS

Syntax

function ClearTable(const AProjectId: string; ATableId: Int64): TJSONValue;

Remarks

The records cannot be recovered afterwards. Use DeleteTable instead to remove the table itself.

Parameters

Name Description
AProjectId Identifier of the project that holds the table.
ATableId Numeric identifier of the table to empty.

Returns

In moSync, the parsed response body confirming the operation. nil in moAsync, and also in moSync when the request failed or came back with an empty body. The caller owns a returned value and has to free it; a server that called this as a tool frees it once the result has been serialized.