use of software.amazon.awssdk.services.codecommit.model.DeleteRepositoryRequest in project aws-doc-sdk-examples by awsdocs.
the class DeleteRepository method deleteRepo.
// snippet-start:[codecommit.java2.del_repo.main]
public static void deleteRepo(CodeCommitClient codeCommitClient, String repoName) {
try {
DeleteRepositoryRequest deleteRepositoryRequest = DeleteRepositoryRequest.builder().repositoryName(repoName).build();
codeCommitClient.deleteRepository(deleteRepositoryRequest);
} catch (CodeCommitException e) {
System.err.println(e.getMessage());
System.exit(1);
}
}
Aggregations