@csrf.exempt<EOL>@api_experimental.route('<STR_LIT>', methods=['<STR_LIT>'])<EOL>@requires_authentication<EOL>def delete_dag(dag_id):
try:<EOL><INDENT>count = delete.delete_dag(dag_id)<EOL><DEDENT>except AirflowException as err:<EOL><INDENT>_log.error(err)<EOL>response = jsonify(error="<STR_LIT:{}>".format(err))<EOL>response.status_code = err.status_code<EOL>return response<EOL><DEDENT>return jsonify(message="<STR_LIT>".format(count), count=count)<EOL>
Delete all DB records related to the specified Dag.