$resource->set('published', '0');
$resource->save();
return '';$resource->remove(); return '';
Dictionaries defines "delete" as to remove, to erase, to eliminate. And I would be willing to bet that 99% of English speaking computer users (and probably non-English speakers as well) have that same understanding of that function. It is one of the most universal computer concepts ... save ... delete.
What MODX has is more like a HIDE, the resource is hidden from outside browsers but still active inside MODX. It is not a "delete" in any sense of the word.
Perhaps MODX needs to rename the current delete to Hide and then create a proper Delete function, so that everyone from the developer right down to Betty Boop Business Woman & end user automatically understands what it means.
Yes it means some developers will need to revisit their code and perhaps change OnDeleteXX events to OnHideXX events. And yes it may mean that in some cases someone might have to Hide and then Delete and then Empty Trash or perhaps add a modal on the trash can to offer options to remove hidden, deleted or all. But ultimately the end user will understand better and be happier, hence the developer will be happier, hence the creators of MODX will be happier, cause smiles roll uphill.