maybe this can help, it is untested, but should work
function cust_item_delete_resources($itemID) {
Item::newInstance()->deleteResourcesFromHD($itemID);
}
osc_add_hook('after_delete_item', 'cust_item_delete_resources');
add this to your functions.php in second installation like the previous code from teseo