Hi Moralis,
I’m working on writing to a class from the front-end and wanted to know, is there code for deleting an object in a class.
For example, I’m using a useEffect hook to create an object with a set of props and it saves to the Moralis db I have set up. But if I wanted to allow the user to delete the created object, how could I do this?
Also, is there a way to only allow users who created their object to delete it? Such as, I create 5 objects in my app. But only I Can delete those 5. Other users could only view them or interact with them.