Hello Poquojuewh44
Are you talking about the Swiss Travel Pass?
It is refundable for the remaining days. Please see an SBB travel centre for this.
It is advisable to price out every single trip upfront in order to figure out whether a pass is useful or not.
Kind regards,
Roland