First version with security
If number of matches > 4, DELETE acts transactionless to avoid XG limit of 5 entities
Better header management