I have the following function to delete individual products. It works perfectly but can be very slow if we're dealing with thousands of items. Is there a way to do this in bulk? I tried passing in an array but it didn't work.
function delete_magento_product($id) {
$proxy = new SoapClient('http://example.com/api/v2_soap/?wsdl');
$session = $proxy->login('admin','abc123');
$result=$proxy->catalogProductDelete($session, $id);
return $result;
}