I am trying to delete a particular record using the phone number while ignoring other fields. I can’t seem to find any information on how to ignore fields for this action. I tried :_ as suggested by some but received the following error.
If a table is of type bag, it can sometimes be needed to delete only some of the records with a certain key. This can be done with the function delete_object/3. A complete record must be supplied to this function.
AS the docs say you need to provide a complete record, therefore you need to first find the record and then pass it to the delete function.