How to reset a node and re-provision it after provision once programmically?

Hi!

We are developing home automation light control mesh products.

We use nrf52832 DK (PCA10040), with nRF Connect SDK Toolchain v2.7.0 and nRF Connect SDK v2.6.1

We had successful build a mesh network, provision nodes.

But our customer need a function: let end user can reset the device (provisionee) after provisioned and then being provison by another provisioner again.

That is to say, they want to remove provision data in provisionee, and join another network or re-join this network.

We had check public Q&A, there is a post talking about:

//dsm_devkey_delete();
//config_client_code_reset();
//dsm_clear()
But we can not find these API. It seems they are deprecated.
Would you please show us example codes to solve this problem?