#NEWLINE# @ utils . arg ( 'id' , metavar = '<NOTIFICATION_ID>' , help = 'The ID of the notification.' ) #NEWLINE# def do_notification_delete( mc , args ) : #NEWLINE# #INDENT# 'Delete notification.' #NEWLINE# fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# fields [ 'notification_id' ] = args . id #NEWLINE# try : #NEWLINE# #INDENT# mc . notifications . delete ( ** fields ) #NEWLINE# #UNINDENT# except exc . HTTPException as he : #NEWLINE# #INDENT# raise exc . CommandError ( ( 'HTTPException code=%s message=%s' % ( he . code , he . message ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'Successfully deleted notification' )