def _view_clear_queue(self, queue_type, queue_id):
response = {<EOL>'<STR_LIT:status>': '<STR_LIT>'<EOL>}<EOL>try:<EOL><INDENT>request_data = json.loads(request.data)<EOL><DEDENT>except Exception as e:<EOL><INDENT>response['<STR_LIT:message>'] = e.message<EOL>return jsonify(**response), <NUM_LIT><EOL><DEDENT>request_data.update({<EOL>'<STR_LIT>': queue_type,<EOL>'<STR_LIT>': queue_id<EOL>})<EOL>try:<EOL><INDENT>response = self.sq.clear_queue(**request_data)<EOL><DEDENT>except Exception as e:<EOL><INDENT>response['<STR_LIT:message>'] = e.message<EOL>return jsonify(**response), <NUM_LIT><EOL><DEDENT>return jsonify(**response)<EOL>
remove queueu from SharQ based on the queue_type and queue_id.