The invention relates to a basket for a machine used to prepare a drink, e.g. coffee, comprised within a container, said basket having an edge with at least one groove, said groove being closed by at least one bottom preventing a direct connection between the inside and the outside of the basket.