If I understand correctly, you only need the extension, so I would just keep it and change the basename to a random one (just to avoid weird characters).