public GHContentUpdateResponse delete(String message) throws IOException { return delete(message, null); }
public GHContentUpdateResponse delete(String message) throws IOException { return delete(message, null); }
public GHContentUpdateResponse delete(String message) throws IOException { return delete(message, null); }
/** * Delete folder with content inside the repository on GitHub. * * @param folder folder to delete * @param deleteCommitMessage commit message which is used to delete the message * @throws IOException */ public void deleteFolder(Path folder, String deleteCommitMessage) throws IOException { for (GHContent ghContent : ghRepo.getDirectoryContent(folder.toString())) { ghContent.delete(deleteCommitMessage); } }
public void deleteFile(String pathToFile) throws IOException { ghRepo.getFileContent(pathToFile).delete("Delete file " + pathToFile); }