defined delete method in company mode