You can use the ‘Post Expirator’ WordPress plugin to expire products automatically: https://wordpress.org/plugins/post-expirator/

 

Once you've installed this plugin you can change the status from "published" to "draft" or "deleted".