I am unable to delete messages in cfpop query because some mail servers use commas in UID. Documentation says that uid is "UID or a comma-delimited list of UIDs to get or delete. Invalid UIDs are ignored." But since there is a comma in the uid, none of them are valid. It seems that the use of commas in UID is very common nowadays.