lib/junos-ez/utils/fs.rb
### -------------------------------------------------------------
### cleanup! will perform the 'request system storage cleanup'
### command and remove the files.  If you want to check which
### files will be removed, use the cleanup? method first
### -------------------------------------------------------------

cleanup. will perform the 'request system storage cleanup'
command and remove the files.  If you want to check which
files will be removed, use the cleanup. method first
cleanup . will perform the ' request system storage cleanup ' command and remove the files . If you want to check which files will be removed use the cleanup . method first
def cleanup!
    got = @ndev.rpc.request_system_storage_cleanup
    gone_h = {}
    got.xpath('file-list/file').each do |file|
      _cleanup_file_to_h( file, gone_h )
    end
    gone_h
  end
def cleanup! got = @ndev . rpc . request_system_storage_cleanup gone_h = { } got . xpath ( 'file-list/file' ) . each do | file | _cleanup_file_to_h ( file , gone_h ) end gone_h end
cleanup!
cleanup!