At the DM’s discretion. Obviously, you can’t kill what’s already dead but you can help or hurt something or someone it cared about in its previous life. Depending on your magical powers, you might be able to figure out how to enter the animated spirit’s realm (Astral Plane, Ethereal Plane, Shadowfell, etc.) and affect its current life.