@must_have_permission(ADMIN)
@must_be_branched_from_node
def delete_draft_registration(auth, node, draft, *args, **kwargs):
 if (draft.registered_node and (not draft.registered_node.is_deleted)):
  raise HTTPError(http.FORBIDDEN, data={'message_short': "Can't delete draft", 'message_long': 'This draft has already been registered and cannot be deleted.'})
 DraftRegistration.remove_one(draft)
 return (None, http.NO_CONTENT)

@ must_have_permission ( ADMIN ) @ must_be_branched_from_node def delete_draft_registration ( auth , node , draft , * args , ** kwargs ) : if ( draft . registered_node and ( not draft . registered_node . is_deleted ) ) : raise HTTPError ( http . FORBIDDEN , data = { 'message_short' : "Can't delete draft" , 'message_long' : 'This draft has already been registered and cannot be deleted.' } ) DraftRegistration . remove_one ( draft ) return ( None , http . NO_CONTENT )
permanently delete a draft registration :return: none :rtype: nonetype .