The ghost will continue to appear as long is the grave is anywhere on your lot, whether it's inside or outside. You've got a couple of options if you don't want the ghost around. You can take the grave to the town cemetary and place it somewhere that you can still find it easily. The ghost will haunt the cemetary, but won't come to your house. Or you can convert a public lot to a private cemetary for just your family. That's what I did with my Dreamweaver Legacy family. The lot across the street from their home was a fishing spot with a bridge. I used Edit Town to put a white iron fence with a gate, benches, flowers, etc. on the lot. Then I would just place gravestones inside the white fence whenever someone died. The family is currently in its 11th or 12th generation and the family cemetary is quite full. The ghosts come out every night and do their thing, even leaving in cars, but they don't haunt the family's home.