need to do an error check

I could have changed delete_any, but I wanted to keep the error
checking the same.
better minimum?