Method: OpenC3::TargetFile.destroy
- Defined in:
- lib/openc3/utilities/target_file.rb
.destroy(scope, name) ⇒ Object
153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/openc3/utilities/target_file.rb', line 153 def self.destroy(scope, name) if ENV['OPENC3_LOCAL_MODE'] OpenC3::LocalMode.delete_local("#{scope}/targets_modified/#{name}") end # Only delete file from the modified target directory Bucket.getClient.delete_object( bucket: ENV['OPENC3_CONFIG_BUCKET'], key: "#{scope}/targets_modified/#{name}", ) true end |