[#2166]Add function for deleting pending member