I have create user used as Admin in firebase auth. Now I want to login and use Admin account to delete other account by using their FIRAuth User UID. How to implement in swift?<
The client-side SDKs for Firebase can only delete the currently authenticated user. They do not allow deleting any other user, or deleting a user identified by their UID.
This means that you cannot implement administrative functionality like deleting an arbitrary user in Swift.
Instead you will have to use the Firebase Admin SDK to delete an arbitrary user or allow your iOS users to delete their own account. Given the actions the Admin SDK allows its user to perform, it should only be used in trusted environments, such as a server you control or Cloud Functions for Firebase.