This is a simple and powerful mantra to get rid of ghosts. “Om Namo Om hrim hrim hrum namo bhut nayak samast bhuvan bhutadi sadhan sadhay hrem hrem hrem”.
Start one a Saturday for 21 days continuously read this mantra 144 times. Light an oil lamp and offer flower and offer batasha before the oil lamp along with a burning camphor.
Once you have done this mantra is siddha for you and you can use a peacock feather to get rid of any ghost.