Hello @Ximena67
There are 2 ways, You use the out of box Sharepoint content retention policy, if you have access to this feature and can configure it, it is the best option but would be very dependent on the scenario and set up you have as it can have other side effects.
Alternatively, you can create a Nintex Site workflow that runs on a schedule, each day have the workflow check the list for any items that have passed the expiry date and delete them.
If you need help setting that up please let me know the version of Sharepoint you are using.