Unable to uninstall erpnext

After removing it using the uninstall-appwhen I try to reinstall it gives error that erpnext exists in the destination directory. However I deleted its folder and removed form apps.txt