diff --git a/airflow/api/common/experimental/delete_dag.py b/airflow/api/common/experimental/delete_dag.py
index <HASH>..<HASH> 100644
--- a/airflow/api/common/experimental/delete_dag.py
+++ b/airflow/api/common/experimental/delete_dag.py
@@ -41,7 +41,7 @@ def delete_dag(dag_id, keep_records_in_log=True):
     if dag is None:
         raise DagNotFound("Dag id {} not found".format(dag_id))
 
-    if dag.fileloc and not os.path.exists(dag.fileloc):
+    if dag.fileloc and os.path.exists(dag.fileloc):
         raise DagFileExists("Dag id {} is still in DagBag. "
                             "Remove the DAG file first: {}".format(dag_id, dag.fileloc))
[AIRFLOW-<I>] Fix incorrect logic in detele_dag (introduced in PR#<I>) (#<I>)

Incorrect logic was introduced in PR #<I>

(<URL>)



This was not found out because the Travis CI was not working as expected.