$ids = [2029363,2029364];
foreach ($ids as $id) {
$response = $modx->runProcessor('resource/delete', array('id' => $id));
if (!$response->isError()) {
return 'Ресурс отмечен как удаленный!';
}
}
щас бы ретерны писать))
Павел
Sergey_K
iWatchYouFromAfar
Миша
Katerina
Evgeniy
prohor
Nikolay
Denis 🌆
Kirill
Anton
Sentinel
Dan