Re-installation (db problem)

I have re-installed via the yum packages. All seemed fine until I tried to enable LDAP app. When I try to enable I get:

An exception occurred while executing 'CREATE TABLE "oc_ldap_user_mapping" ("ldap_dn" VARCHAR(255) DEFAULT '' NOT NULL, "owncloud_name" VARCHAR(255) DEFAULT '' NOT NULL, "directory_uuid" VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY("owncloud_name"))': SQLSTATE[HY000]: General error: 1 table "oc_ldap_user_mapping" already exists

It seems the uninstall left some of the old database around? How do I remove or enable LDAP on new installation?

Have a look at the release notes:

https://doc.owncloud.org/server/latest/admin_manual/release_notes.html#installing-the-ldap-user-backend-will-trigger-the-installation-twice