Is there a function that deletes an “expired ticket”?

You can delete it by selecting “Expired ticket” in the MY Purchase List of the store.