As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
That is the correct method to use, and I just did a quick test and it seems to be functional.
When you say it doesn't work, what is happening? Is the method throwing an exception or is just nothing happening?
Also, have you had a chance to look at the troubleshooting guide? If you can, enable debug logging and post the HTTP request and response from the logs. Thanks!
I get the following NPE on the deletedBlocking(true).execute():
"NullPointerException: abstractKinveyClient must not be null"
I verified that the user[0] is not null by printing out the username right before the delete method.
I will try to enable debug logging, let me know if you've seen this exception before.
Thanks.
A
Arun Venkatesan
said
over 8 years ago
I added the debug logging, but since the call throws an exception that's the only information I get.
E
Edward
said
over 8 years ago
Hey, this looks like an issue with the Java library, thank you for bringing it up.
The problem is that all user operations are meant to be performed on the logged in user, which doesn't quite make sense with the Java library where the app credentials are used to log in and not a specific User.
While that looks complicated, it will just initialize a `dummy` User object (called userAPI), with app credentials, a json parser, and an http transport. After that, it overrides the default id value-- note replace "my user id to delete" with the user's _id you wish to delete.
A
Arun Venkatesan
said
over 8 years ago
I couldn't find the AsyncUser class in any of the packages, however I was able to just use the regular User class and it worked correctly. Updated code below.
Arun Venkatesan
I tried the following, but it doesn't work.
Query userQuery = javaClient.query(); userQuery.equals("customer_id", 12345);
User user[] = (User[]) javaClient.user().retrieveBlocking(userQuery).execute();
user[0].deleteBlocking(true).execute();
Is there a different method to delete the user?