Delete the daemon function