How to set up a automate rule to delete SharePoint site contact when it is expired.

Jason Tang 40 Reputation points
2024-07-09T04:39:08.8066667+00:00

Hi all,

May I ask if there a way to create a Automate Flow to delete a site contact depends on the expire date?

For example, I have added a column called Expire:

User's image

Is there any way to get this file deleted when it is expired and send a notification out?

Thank you in advance.

Regards,

Jason

Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 24,941 Reputation points Moderator
    2024-07-09T06:57:43.47+00:00

    Hi @Jason Tang,

    To automatically delete list items depends on the expire date, please create a Power Auto mate flow like below.

    1.Create a Scheduled cloud flow. Start from today or tomorrow 12:00AM and repeat every day.

    User's image

    2.Add an action "Get items". Set the filter query to Expire le'utcNow()'.

    User's image

    3.Add an action "Delete item" like below.

    User's image

    Save it and you will get what you want.

    Thanks.


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.