It is up to the practitioner and individual whether or not it is advised to consume coffee while using a microbiome detox program.
Often caffeine can be suggested to be cut out during a cleanse as it can add some additional stress to the liver.
If cutting coffee out of the diet is difficult, then sometimes 1 cup is allowed and it is also suggested to get organic high quality coffee that is low in acidity and mold.