1

I've got a problem iam currently building a php backend with connect to an OVH object storage and I would like to make a bulk delete using the php-opencloud sdk According to the documentation there is a function named batchDelete() or bulkDelete() which does exactly what i am searching for but when I call it, php throw an error saying the called method does not exist (I have seen in the GitHub that batchDelete is deprecated and we should use instead bulkDelete but none of them work)

$openstack
    ->objectStoreV1()
    ->batchDelete($list);

Fatal error: Uncaught RuntimeException: OpenStack\ObjectStore\v1\Service::batchDelete is not defined

OR

$openstack
    ->objectStoreV1()
    ->bulkDelete($list);

Fatal error: Uncaught RuntimeException: OpenStack\ObjectStore\v1\Service::bulkDelete is not defined

Could someone help me please ?

BootEXE
  • 13
  • 4
  • After some research have read that RackSapce/php-opencloud and Openstack/php-opencloud are two different framework that have been merged to make Openstack/php-cloud so the bulkDelete option has been deleted for non-Rackspace server so there is no solution to bulkDelete without a loop in php – BootEXE May 29 '20 at 13:57

0 Answers0