instance method
delete
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
delete(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activestorage/lib/active_storage/service/gcs_service.rb, line 58
def delete(key)
instrument :delete, key: key do
file_for(key).delete
rescue Google::Cloud::NotFoundError
# Ignore files already deleted
end
end
Defined in activestorage/lib/active_storage/service/gcs_service.rb line 58
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::GCSService