Deleting contacts who didn't leave their name

Is there a way to query only those people who didn’t fill in their name and delete them?

Thanks

Yes . Do a search and in the first name criteria there is a drop-down option for “is empty“

Choose that and you will get all the blank first names