Where is deleteEntity function defined ?