ContentRepository delete method refactored to delete all descendants rou...

Re-factored and tested