instance method
delete
Ruby on Rails 8.0.4
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 65
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 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::AzureStorageService