Convert `deleteGhost` to Cadence.

See #375.