web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / delete file to recycle...
Power Automate
Unanswered

delete file to recycle bin on desktop

(0) ShareShare
ReportReport
Posted on by 2

Hi anyone know if its possible to delete a file the recycle bin instead of permanent delete?

on windows 11 desktop

flow

get files ( in downloads, match *.rdp)

Delete files %files%

wait 3600

loop

 

thanks

 

Categories:
  • AWorley Profile Picture
    414 Super User 2024 Season 1 on at

    To move items to the Recycle bin you will need to pass the path argument for the recycle bin folder using the move file action:

    C:\$Recycle.Bin

  • Dwull98 Profile Picture
    2 on at

    Hi, thanks for your reply.

    I tried that already but i then got a error, access to path denied.

    log

    "

    Correlation Id: 97f6751b-8fcd-4f14-a467-720171afb0f6

    Access to the path is denied.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Can't move file C:\Users\denni\Downloads\launch4b8c43ed.rdp into C:\$RECYCLE.BIN ---> System.UnauthorizedAccessException: Access to the path is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
    at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.MoveFileAction.MoveFile(FileObject source, FolderObject destination, Boolean overwrite)
    --- End of inner exception stack trace ---
    at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.MoveFileAction.MoveFile(FileObject source, FolderObject destination, Boolean overwrite)
    at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.MoveFileAction.Execute(ActionContext context)
    at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)"

     

    Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard