func deleted