amazon s3 deletion not working -



amazon s3 deletion not working -

i want delete specif object amazone s3. doing code

$s3 = s3client::factory(array( 'key' => content_key, 'secret' => content_secret )); $keyname = /testing/test_mag120/hhhhhh427/; $result = $s3->deleteobjects(array( 'bucket' => content_bucket, 'objects' => array( array('key' => $keyname), ) )); echo "<pre>"; print_r($result); die();

when print output got

guzzle\service\resource\model object ( [structure:protected] => [data:protected] => array ( [deleted] => array ( [0] => array ( [key] => /testing/test_mag120/hhhhhh427/ ) ) [requestid] => dumbdata ) )

after log in business relationship through s3 browser object not deleted. if permission issue. if 1 know please help me.

i have had issues when trying before. bucket name not provide s3://, instead provide bucket name. key name, not include "/" first, illustration may have next file. note, key not me accesskey, instead name of file. delete must done on file, not directory. s3 not have actual directorys windows.

s3://mybucket/myfile.csv

you want provide

bucket = mybucket

key = myfile.csv

so maybe try(but doesn't seem specific file?"...

$keyname = testing/test_mag120/hhhhhh427/;

amazon-web-services amazon-s3

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -