Most dishwashing liquid doesn’t kill bacteria, but instead lifts it off the dishes so it can be rinsed away with water (source). You can buy antibacterial dish soap which will kill bacteria. However, washing it away is effective enough.