While some studies have shown cranberry to prevent urinary tract infections, others have not shown much benefit to this. There is no specific amount or type guaranteed to get rid of a current urinary tract infection.