pub async fn delete_label(&self, name: impl AsRef<str>) -> Result<models::Label> {
        let route = format!(
            "repos/{owner}/{repo}/labels/{name}",
            owner = self.owner,
            repo = self.repo,
            name = name.as_ref(),
        );

        self.crab.delete(route, None::<&()>).await
    }
/// Deletes a label in the repository.
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// let label = octocrab::instance()
///     .issues("owner", "repo")
///     .delete_label("help wanted")
///     .await?;
/// # Ok(())
/// # }
/// ```
Deletes a label in the repository.
Deletes a label in the repository .
pub async fn delete_label(&self, name: impl AsRef<str>) -> Result<models::Label> {
        let route = format!(
            "repos/{owner}/{repo}/labels/{name}",
            owner = self.owner,
            repo = self.repo,
            name = name.as_ref(),
        );
        self.crab.delete(route, None::<&()>).await
    }
pub async fn delete_label ( & self , name : impl AsRef < str > ) -> Result < models :: Label > { let route = format ! ( " " owner self owner repo self repo name name as_ref ( ) ) ; self . crab . delete ( route , None :: < & ( ) > ) . await }
Deletes a label in the repository.
Deletes a label in the repository .
&self
name
impl AsRef<str>
&self
name
impl AsRef<str>
async fn run() -> octocrab::result<()> {
let label = octocrab::instance()
.issues("owner", "repo")
.delete_label("help wanted")
.await?.
let label = octocrab :: instance () . issues ( " owner " " repo " ) . delete_label ( " help wanted " ) . await? .
ok(())
None
}
None