allow remove by function