instance method
delete
Ruby on Rails 6.1.7.10
Since v5.2.8.1 Last seen in v8.0.4Signature
delete(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 56
def delete(key)
instrument :delete, key: key do
client.delete_blob(container, key)
rescue Azure::Core::Http::HTTPError => e
raise unless e.type == "BlobNotFound"
# Ignore files already deleted
end
end
Defined in activestorage/lib/active_storage/service/azure_storage_service.rb line 56
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::AzureStorageService