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
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,178 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,875 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
606 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 21,211 Reputation points Microsoft Vendor
    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.