Fix del api and Add select type fnc