In the SharePoint Online, the related jobs automatically run in the back end.
1.Make sure the file belongs to Document content type. Go to classic experience library -> Select the file -> Click ellipsis -> Advanced -> Compliance Details to check content type and retention policy.
2.Please upload some files into library to test whether the retention policy works.
3.If the issue persists, try to re-create the retention policy.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.