instance method
delete
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
delete(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activestorage/lib/active_storage/service/gcs_service.rb, line 64
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 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::GCSService