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