Api rest delete

Hello I have a marketplace app and users can upload their own Post (I used an API REST Get collection) from firebase but now I want users to be able to delete their post and I don’t how to set it up (API REST Delete)
Can someone help me?