delete core function