Even though the Red Hood gang had all been killed, the red hood would still be needed as a valuable piece of evidence. It would certainly be needed for the investigation of the shooting. There is no way a by-the-book cop like Gordon would leave evidence in the gutter for a child to find, as happened in the closing scene.