delete_repository: Delete a user or organization repository

Description Usage Arguments Details Value Examples

View source: R/repositories.R

Description

This function deletes a repository from GitHub, as long as you have appropriate permissions. Care should be taken as it will not be recoverable.

Usage

1

Arguments

repo

(string) The repository specified in the format: owner/repo.

...

Parameters passed to gh_request().

Details

For more details see the GitHub API documentation:

Value

delete_repository() returns a TRUE if successfully deleted.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

  # Delete a user's repository
  delete_repository("ChadGoymer/user-repository")

  # Delete an organization's repository
  delete_repository("HairyCoos/org-repository")


## End(Not run)

ChadGoymer/githapi documentation built on Oct. 22, 2021, 10:56 a.m.