Fix delete all function. Pass in custom query to check indices
Add a delete node function. Fix deleteAll function