def delete(self, thing_id='<STR_LIT:0>', action_name=None, action_id=None):
thing = self.get_thing(thing_id)<EOL>if thing is None:<EOL><INDENT>self.set_status(<NUM_LIT>)<EOL>return<EOL><DEDENT>if thing.remove_action(action_name, action_id):<EOL><INDENT>self.set_status(<NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>self.set_status(<NUM_LIT>)<EOL><DEDENT>
Handle a DELETE request.

thing_id -- ID of the thing this request is for
action_name -- name of the action from the URL path
action_id -- the action ID from the URL path