TQ\Vcs\Repository\RepositoryInterface::removeFile PHP Method

removeFile() public method

Removes a file and commit the changes immediately
public removeFile ( string $path, string | null $commitMsg = null, boolean $recursive = false, boolean $force = false, string | null $author = null ) : string
$path string The file path
$commitMsg string | null The commit message used when committing the changes
$recursive boolean True to recursively remove subdirectories
$force boolean True to continue even though VCS reports a possible conflict
$author string | null The author
return string The current commit hash
    public function removeFile($path, $commitMsg = null, $recursive = false, $force = false, $author = null);

Usage Example

 /**
  * {@inheritDoc}
  */
 public function delete($key)
 {
     $this->repository->removeFile($key);
     return true;
 }