LoginSignup
2
2

More than 5 years have passed since last update.

GitLab | GitLab API でプロジェクトを削除する

Last updated at Posted at 2014-07-18

GitLab | GitLab API でプロジェクトを削除する

概要

GitLab API でプロジェクトを削除します。

シグネチャ

delete_project(id)

仕様

移動前プロジェクト: before
移動後プロジェクト: after

サンプルコード

move_project_group.rb
require 'gitlab'
require 'pp'

Gitlab.configure do |config|
  config.endpoint       = 'http://some_path/api/v3' 
  config.private_token  = 'some token'
end

project = Gitlab.projects(per_page: 100).find { |e|e.name == 'ProjectName' }
Gitlab.delete_project(project.id)

参照

GitLab API まとめ

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2