@Delete("/projects/{projectName}/repos/{repoName}")
    @RequiresRole(roles = ProjectRole.OWNER)
    public CompletableFuture<Void> removeRepository(ServiceRequestContext ctx,
                                                    @Param("repoName") String repoName,
                                                    Repository repository,
                                                    Author author) {
        if (Project.isReservedRepoName(repoName)) {
            return HttpApiUtil.throwResponse(ctx, HttpStatus.FORBIDDEN,
                                             "A reserved repository cannot be removed.");
        }
        return execute(Command.removeRepository(author, repository.parent().name(), repository.name()))
                .thenCompose(unused -> mds.removeRepo(author, repository.parent().name(), repository.name()))
                .handle(HttpApiUtil::throwUnsafelyIfNonNull);
    }
@ Delete ( "/projects/{projectName}/repos/{repoName}" ) @ RequiresRole ( roles = ProjectRole . OWNER ) public CompletableFuture < Void > removeRepository ( ServiceRequestContext ctx , @ Param ( "repoName" ) String repoName , Repository repository , Author author ) { if ( Project . isReservedRepoName ( repoName ) ) { return HttpApiUtil . throwResponse ( ctx , HttpStatus . FORBIDDEN , "A reserved repository cannot be removed." ) ; } return execute ( Command . removeRepository ( author , repository . parent ( ) . name ( ) , repository . name ( ) ) ) . thenCompose ( unused -> mds . removeRepo ( author , repository . parent ( ) . name ( ) , repository . name ( ) ) ) . handle ( HttpApiUtil :: throwUnsafelyIfNonNull ) ; }
DELETE /projects/{projectName}/repos/{repoName}

<p>Removes a repository.