deleteReference method

Future<bool> deleteReference(
  1. RepositorySlug slug,
  2. String ref
)

Implementation

Future<bool> deleteReference(RepositorySlug slug, String ref) {
  return github
      .request('DELETE', '/repos/${slug.fullName}/git/refs/$ref')
      .then((response) => response.statusCode == StatusCodes.NO_CONTENT);
}