deletePipelinesEnvironmentVariable
  :: (MonadCatch m, MonadIO m)
  => S.Session
  -> Username
  -> RepoName
  -> Uuid
  -> EitherT BitbucketAPIError (BitbucketT m) ()
deletePipelinesEnvironmentVariable sess owner reponame uuid =
  let
    endpoint :: T.Text
    endpoint = T.concat [
        baseV2URL
      , "/repositories/"
      , getUsername owner
      , "/"
      , getRepoName reponame
      , "/pipelines_config/variables/"
      , getUuid uuid
      ]
  in bitbucketDelete sess endpoint
deletePipelinesEnvironmentVariable
  :: (MonadCatch m, MonadIO m)
  => S.Session
  -> Username
  -> RepoName
  -> Uuid
  -> EitherT BitbucketAPIError (BitbucketT m) ()
deletePipelinesEnvironmentVariable sess owner reponame uuid =
  let
    endpoint :: T.Text
    endpoint = T.concat [
        baseV2URL
      , "/repositories/"
      , getUsername owner
      , "/"
      , getRepoName reponame
      , "/pipelines_config/variables/"
      , getUuid uuid
      ]
  in bitbucketDelete sess endpoint
deletePipelinesEnvironmentVariable sess owner reponame uuid =
  let
    endpoint :: T.Text
    endpoint = T.concat [
        baseV2URL
      , "/repositories/"
      , getUsername owner
      , "/"
      , getRepoName reponame
      , "/pipelines_config/variables/"
      , getUuid uuid
      ]
  in bitbucketDelete sess endpoint