Add delete error repeat package function