Fixed bug for bulk delete and delete; Delete based on query implemented