Closed JustJordanT closed 3 years ago
Still now working need to resolve.
Issue resolved, this was due to a typo in the BlobServices.cs file.
public async Task<bool> DeleteBlob(string name, string containerName)
{
//Allow us to access the data inside the container.
var containerClient = _blobClient.GetBlobContainerClient(containerName);
//Get access to a certain file, inside the container, ie (FILENAME).
var blobClient = containerClient.GetBlobClient(name);
//if the file exists the file wi;; be deleted.
return await blobClient.DeleteIfExistsAsync(); //<<<<This line was calling out the containerClient and not the blobClient.
}
Expected Behavior
Delete the file by name.
Actual Behavior
When deleting a file by name, the container from the storage account is removed from
Azure
Steps to Reproduce the Problem
Specifications
Reference
6 Backend API