remove deleted templates