delete refs and records