add del & save API

And make a sample how to make a custom one.