delete Method - Service Factory Reference

This method deletes one or more records.

Delete One Record#

Code
await postModuleService.deletePosts("123")

To delete one record, pass its ID as a parameter of the method.


Delete Multiple Records#

Code
1await postModuleService.deletePosts([2  "123",3  "321",4])

To delete multiple records, pass an array of IDs as a parameter of the method.


Delete Records Matching Filters#

Code
1await postModuleService.deletePosts({2  name: "My Post",3})

To delete records matching a set of filters, pass an object of filters as a parameter.

NoteLearn more about accepted filters in this documentation .
Was this page helpful?
Edit this page