javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java
public GitRmResponse rm() throws IOException, JavaGitException {
    GitRm gitRm = new GitRm();

    // run git rm command
    return gitRm.rm(workingTree.getPath(), relativePath);
  }
public GitRmResponse rm() throws IOException, JavaGitException {
    GitRm gitRm = new GitRm();

    // run git rm command
    return gitRm.rm(workingTree.getPath(), relativePath);
  }
Removes the file system object from the working tree and the index

@return response from git rm