diff --git a/datadog/api/comments.py b/datadog/api/comments.py index 3432bcac3..0b442feef 100644 --- a/datadog/api/comments.py +++ b/datadog/api/comments.py @@ -1,8 +1,7 @@ -from datadog.api.resources import CreateableAPIResource, UpdatableAPIResource, \ - DeletableAPIResource +from datadog.api.resources import CreateableAPIResource, UpdatableAPIResource -class Comment(CreateableAPIResource, UpdatableAPIResource, DeletableAPIResource): +class Comment(CreateableAPIResource, UpdatableAPIResource): """ A wrapper around Comment HTTP API. """ diff --git a/datadog/api/events.py b/datadog/api/events.py index bd15a1fd3..4aae887dd 100644 --- a/datadog/api/events.py +++ b/datadog/api/events.py @@ -1,9 +1,9 @@ from datadog.api.resources import GetableAPIResource, CreateableAPIResource, \ - SearchableAPIResource, DeletableAPIResource + SearchableAPIResource from datadog.util.compat import iteritems -class Event(GetableAPIResource, CreateableAPIResource, SearchableAPIResource, DeletableAPIResource): +class Event(GetableAPIResource, CreateableAPIResource, SearchableAPIResource): """ A wrapper around Event HTTP API. """ diff --git a/datadog/dogshell/comment.py b/datadog/dogshell/comment.py index f10449796..06b8ff678 100644 --- a/datadog/dogshell/comment.py +++ b/datadog/dogshell/comment.py @@ -158,12 +158,3 @@ def _show(cls, args): print('url\t\t' + res['event']['url']) print('resource\t' + res['event']['resource']) print('message\t\t' + res['event']['text'].__repr__()) - - @classmethod - def _delete(cls, args): - api._timeout = args.timeout - id = args.comment_id - res = api.Comment.delete(id) - if res is not None: - report_warnings(res) - report_errors(res)