Deletes a file's associated destination file, if any.
492512
def delete_dest(path)
      file = Ichiban::ProjectFile.from_abs(path)
      # file will be nil if the path doesn't map to a known subclass of IchibanFile. Furthermore,
      # even if file is not nil, it may be a kind of IchibanFile that does not have a destination.
      if file and file.has_dest?
        dest = file.dest
      else
        dest = nil
      end
      if dest and File.exist?(dest)
        FileUtils.rm(dest)
      end
    
      # Log the deletion(s)
      Ichiban.logger.deletion(path, dest)
    end
776533
def move_file(originals, destination):
    
    for original in originals:
        if os.path.exists(original):
            shutil.move(original, destination)
458465
def delete(self):
        

        directory = self._directory()
        assert isinstance(directory, Directory)

        realPath = self.realPath
        assert (os.path.exists(realPath))
        os.remove(realPath)

        directory._fileDeleted(self)
783587
def file_delete(context, id, file_id):
    
    component.file_delete(context, id=id, file_id=file_id)
432747
def delete(self, file_, delete_file=True):
        
        image_file = ImageFile(file_)
        if delete_file:
            image_file.delete()
        default.kvstore.delete(image_file)
819070
def remove_remap_file(filename):
    """"""
    global file2file_remap
    if filename in file2file_remap:
        retval = file2file_remap[filename]
        del file2file_remap[filename]
        return retval
    return None
279667
def delete_file(f):
    
    fp = f.get_fullpath()
    log.info("Deleting file %s", fp)
    os.remove(fp)
1047901
public static void delete(final Path target) throws IOException {
		if(target != null && Files.exists(target)) {
			Files.walkFileTree(target, new SimpleFileVisitor<Path>() {
				@Override
				public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException {
					Files.delete(file);
					return super.visitFile(file, attrs);
				}

				@Override
				public FileVisitResult postVisitDirectory(final Path dir, final IOException exc) throws IOException {
					Files.delete(dir);
					return super.postVisitDirectory(dir, exc);
				}
			});
		}
	}
1012082
public void delete() {
		for(int i = 1; i < m_nextNo; i++) {
			new File(m_fileName + "_" + i).delete();
		}
		m_nextNo = 1;
	}
990238
private boolean removeFile(File f) {
        if (Utils.fileIsFile(f)) {
            return Utils.deleteFile(f);
        } else {
            //delete directory f..
            boolean ok = true;
            //remove all the children..
            File children[] = Utils.listFiles(f);
            if (children != null) {
                for (File child : children) {
                    ok &= removeFile(child);
                }
            }
            //once children are deleted, remove the directory
            if (ok) {
                ok &= Utils.deleteFile(f);
            }
            return ok;
        }
    }
1078090
def file_remove(self, path, filename):
        
        if os.path.isfile(path + filename):
            os.remove(path + filename)
677164
def clean_destination(dest)
      cached = @git.ls_files(dest)

      if @handler
        cached.select! do |file|
          results = @handler.on_precheck_delete?(file)
          # a file gets removed if there are no results or any result is false
          results.empty? || results.inject(&:&)
        end
      end

      @git.remove(*cached)
    end
543447
def delete(filething):
    

    t = OggVorbis(filething)
    filething.fileobj.seek(0)
    t.delete(filething)
550889
def remove_file(paths):
    

    for path in force_list(paths):
        if os.path.exists(path):
            os.remove(path)
1063054
def clear_dir(self):
        """"""
        self.stdout.write("Deleting contents of '{}'.".format(self.destination_path))

        for filename in os.listdir(self.destination_path):
            if os.path.isfile(filename) or os.path.islink(filename):
                os.remove(filename)
            elif os.path.isdir(filename):
                shutil.rmtree(filename)
1265615
def delete(filething):
    

    t = OggFLAC(filething)
    filething.fileobj.seek(0)
    t.delete(filething)
944582
def remove_file(self, file_name, *args, **kwargs):
		
		previous_path = self.session_path()
		try:
			self.session_path(file_name)
			os.unlink(self.full_path())
		finally:
			self.session_path(previous_path)