I am trying to use new AZURE SDK FOR CPP and I am strugling to delete blob, I keep getting bad_alloc
try
{
auto container = GetBlobContainer();
auto blob = container.GetBlobClient(path);
if(BlobExists(blob))
{
blob.Delete();
}
}
catch(const std::exception& e)
{
std::string error_message = std::string("Failed to delete blob :") + path + std::string(" Error:") + e.what();
throw std::runtime_error(error_message);
}
Does anyone here recognizes any problem?
Thanks!
I am expecting blob to delete if exists without any problems