I am trying to delete the files on Amazon s3 bucket using simpledb. But for some reason it does not delete the file and says that it has deleted it.
I am using S3 classdeleteObject method to delete the file. Below is the sample code :
$bucketName = "bucket";
$s3 = new S3($awsAccessKey, $awsSecretKey);
if ($s3->deleteObject($bucketName, $url))
{
echo "deleted url";
}
else
{
echo "cannot delete";
}
After execution the script echoes "deleted url" which should happen when deletion is successfully completed. But when I open the URL again, the file is still there and has not been deleted.
Please help.
Thanks a lot.