def _rm
      if @targets.empty?
        @response[:error] = "No files were selected for removal"
      else
        removed_list = []
        @targets.to_a.each do |target|
          removed_list.concat remove_target(target)
        end
        @response[:removed] = removed_list unless removed_list.empty?
      end
    end
def _rm
      if @targets.empty?
        @response[:error] = "No files were selected for removal"
      else
        removed_list = []
        @targets.to_a.each do |target|
          removed_list.concat remove_target(target)
        end
        @response[:removed] = removed_list unless removed_list.empty?
      end
    end
of paste