Auto Remove Stack After Time Interval

How do you auto remove containers after 2.5 week time interval? There is no reason for us to waste space by holding those stacks in our Rancher Environment after that 2.5 week period. How do we do this? Is there a command we can put in our rancher-compose.yml?