Implemented recursive deletion.