Remove a user from the DB

Would it be possible to have a “remove data” button on my dapp that would log a user out and remove their information in the Moralis database ?

If so what would that look like in JS ? Is it possible not using cloud code ?

It is possible to do it. Try to see how to make basic queries that delete an entry in the database. You have to delete from user table, ethAddress table and session table