add delete func

add a delete func.and add func return a id.