Delete an LDAP user.

def delete(config, username, type):
        """Delete an LDAP user."""
        client = Client()
        client.prepare_connection()
        user_api = API(client)
        user_api.delete(username, type)