deleteAll()
MyModel.deleteAll(
/* {Array} -- optional. ex: ['ParentEntity', 1234 ] */
<ancestors>,
/* {string} -- optional. A specific namespace */
<namespace>
)BlogPost.deleteAll().then((response) => {
console.log(response.success);
});
// With ancestors path and namespace
BlogPost.deleteAll(['Grandpa', 1234, 'Dad', 'keyname'], 'com.dev.new-domain')
.then((response) => {
...
});Last updated
Was this helpful?