A DERELICT 19th century church in Maindee is to be demolished and replaced with 14 new affordable homes.