diff --git a/debian/obs-api.postrm b/debian/obs-api.postrm
index 4e9755b0b4a5ef7e01569d35c7eee5f7503b93fb..90d6117dedeb300bd15f0f1d4098251926acc326 100644
--- a/debian/obs-api.postrm
+++ b/debian/obs-api.postrm
@@ -16,13 +16,12 @@ if [ "$1" = "purge" ]; then
     if which ucf >/dev/null 2>&1; then
 	ucf --purge /etc/obs/api/config/database.yml
     fi
-    rm -f /etc/obs/api/.bundle/config
-    rm -f /etc/obs/api/config/secret.key
+    rm -rf /usr/share/obs/api
+    rm -rf /usr/share/obs/overview
 fi
 
 if [ -L /usr/share/obs/api/vendor/rails ]; then
     rm -f /usr/share/obs/api/vendor/rails
 fi
 
-
 #DEBHELPER#