Method: ActiveStorage::Service::GCSService#delete
- Defined in:
- activestorage/lib/active_storage/service/gcs_service.rb
#delete(key) ⇒ Object
66 67 68 69 70 71 72 |
# File 'activestorage/lib/active_storage/service/gcs_service.rb', line 66 def delete(key) instrument :delete, key: key do file_for(key).delete rescue Google::Cloud::NotFoundError # Ignore files already deleted end end |