updated variable used
diff --git a/tasks/main.yml b/tasks/main.yml
index c5c0d6e..4b621f6 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -3,7 +3,7 @@
 - block:
   - name: Clear the pgdata folder
     file:
-      path: "{{ apigee_installation_home }}/data/apigee-postgresql"
+      path: "{{ apigee_postgresql_data_dir }}"
       state: absent
 
   - name: Postgres replication standby