The general rule
Making an image does not give you permission to remove every signal in it. What matters is whether the data names someone else's rights, whether removing it helps hide an infringement, whether a disclosure rule applies to you, and which country you are in.
Removing your own AI tool's logo or generator tag is a different act from erasing another creator's name. Most of the law below is about that difference.