moved delete to the master and updated it to also update the nodes after a delete
fixing merge conflict