The present invention relates to an aqueous cosmetic composition in the form of a flexible solid comprising, in a physiologically acceptable medium: - at least one anionic surfactant, - at least of the glycerol and at least one polyol, the other as glycerine, the content expressed in percentage by weight relative to the total weight of the composition, of all the other polyols present in the composition, other than the glycerol, being greater than or equal to the content of glycerol. The present invention also relates to a cosmetic process for cleaning and / or beauty care formulation for keratinous materials, in particular of the skin