Wrote base functions to delete and search ES