Delete objects from database based on user_id

i have a database that stores orders temporarily before sending to be filled via an API. This database could hold multiple rows with the same user_id (title of one of the columns). I invoked the service database (name) delete_service in order to do this url is ...collections/buy_temp/{_id}.. but i don't want to delete by the database o=auto counter i want to delete by the user_id.. please advice on the best way to do this
1 person has
this question
+1
Reply