Hi @Lide_Ding,
Welcome to the community! Which version of Kibana are you using?
If it's 8.11 or later you are right that the Delete saved objects API has been marked for deprecation. I see from this thread that an alternative has not currently been made available to replace, so the API will not be removed until there is a replacement available.
Hope that helps!