Delete POS invoice every week

Hello,
does anybody has got an idea how to delete the POS invoices every week or day automatically on UBUNTU Server?

Best regard