delete-function debug