remove code referencing deleted links