...
Changing the target space
If you need to change the target space after content has already been published from the source space, only content that has not been previously published can be published to the new space.
The space settings Publishing configuration dashboard will display a warning banner.
...
To publish all the content in the source space to a new target space you can either
delete the previous target space (or delete the previously published documents from this previous target space)
move all the published documents from the previous target space to the new target space
If you don't delete the previous target space documents or move them to the new target space then these documents will continue to be published in the previous target space.