delete-function repair