- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
softDelete Method - Service Factory Reference
This method soft deletes one or more records of the data model.
Soft Delete One Record#
Parameters#
To soft delete a record, pass its ID as a parameter of the method.
Returns#
The method returns an object, whose keys are of the format {camel_case_data_model_name}_id
, and their values are arrays of soft-deleted records' IDs.
For example, the returned object of the above example is:
Soft Delete Multiple Records#
Parameters#
To soft delete multiple records, pass an array of IDs as a parameter of the method.
Returns#
The method returns an object, whose keys are of the format {camel_case_data_model_name}_id
, and their values are arrays of soft-deleted records' IDs.
For example, the returned object of the above example is:
Soft Delete Records Matching Filters#
Parameters#
To soft delete records matching a set of filters, pass an object of filters as a parameter.
Returns#
The method returns an object, whose keys are of the format {camel_case_data_model_name}_id
, and their values are arrays of soft-deleted records' IDs.
For example, the returned object of the above example is: