add api to delete category (#197)

add api to delete category (#197)

diff --git a/lib/discourse_api/api/categories.rb b/lib/discourse_api/api/categories.rb
index 25cb520..6e27f86 100644
--- a/lib/discourse_api/api/categories.rb
+++ b/lib/discourse_api/api/categories.rb
@@ -28,6 +28,11 @@ module DiscourseApi
         response['body']['category'] if response['body']
       end
 
+      def delete_category(id)
+        response = delete("/categories/#{id}")
+        response[:body]['success']
+      end
+
       def categories(params = {})
         response = get('/categories.json', params)
         response[:body]['category_list']['categories']

GitHub sha: 92a68c9a

This commit appears in #197 which was merged by blake.