Hi
I would like to know how to delete one resource only without clicking the "Purge deleted resources".
I noticed if you do that, all the other resources will be deleted as well.
I just would like to delete that particular resource it is possible?
Thanks
You can delete that single resource from the database, using f.e. [tt]phpMyAdmin[/tt] .
Open the table [tt]modx_site_content[/tt] (or whatever is your prefix), look for the record of the wanted resource and delete it.
I see so I have to login to the database and delete it from there?
If you’re using Revolution, this snippet would do it:
$resource = $modx->getObject('modResource', ##); // replace ## with the ID of the resource
$resource->remove();
Be careful, though, the resource is gone for good once it executes.