How to delete data from a database

How to delete object from a database using API (Android)?


CRUD operations with data described in our documentation.
Examples how to remove data objects you can find in Android documentation and in Blog.


how to do it without coding a new class?


how I can do it without REST, using only Backendless API?

OK, I created new class as shown in the documentation, everything works.

I’m sorry to bother you.

what should i do if i want to delete row from backendlessuser table

its showing me this error:
unable to find method in class. method name remove…


I just responded to your other post with the same question.


Hi, Rahul!
This is a bug, we shall fix it soon.
There is a workaround you can use for now - BackendlessUser objects can be removed if you retrieve them using Data service. For example:

BackendlessUser targetUser = Backendless.UserService.login( "foo@bar", "password" );
targetUser = Backendless.Data.of( BackendlessUsers.class ).findById( targetUser.getObjectId() );
Backendless.Data.of( BackendlessUser.class ).remove( targetUser );

but i am admin and i want to remove my client then how should i know password of my client
thanks for your help…

If you are admin, you should use Backendless console to delete users.