From c8e7d6df794fe845299fab07827aa35269e2c2bf Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Wed, 9 Oct 2013 14:41:41 +0300
Subject: [PATCH] API: new feature - remove project[D

---
 lib/api/groups.rb   |  1 -
 lib/api/projects.rb | 10 ++++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 265417fd6bc..290b78d8017 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -66,7 +66,6 @@ module API
         present group, with: Entities::GroupDetail
       end
 
-
       # Remove group
       #
       # Parameters:
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index cf357b23c40..221f1f1e23c 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -129,6 +129,16 @@ module API
         end
       end
 
+      # Remove project
+      #
+      # Parameters:
+      #   id (required) - The ID of a project
+      # Example Request:
+      #   DELETE /projects/:id
+      delete ":id" do
+        authorize! :remove_project, user_project
+        user_project.destroy
+      end
 
       # Mark this project as forked from another
       #
-- 
GitLab