KioskDeleteDownloadsOnExit doesn't work

%3CLINGO-SUB%20id%3D%22lingo-sub-2143501%22%20slang%3D%22en-US%22%3EKioskDeleteDownloadsOnExit%20doesn't%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143501%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22%22%3ECan't%20get%20this%20policy%20to%20work...%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EDescription%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThis%20policy%20only%20applies%20to%20Microsoft%20Edge%20kiosk%20mode.%3C%2FP%3E%3CP%3EIf%20you%20enable%20this%20policy%2C%20files%20downloaded%20as%20part%20of%20the%20kiosk%20session%20are%20deleted%20each%20time%20Microsoft%20Edge%20closes.%3C%2FP%3E%3CP%3EIf%20you%20disable%20this%20policy%20or%20don't%20configure%20it%2C%20files%20downloaded%20as%20part%20of%20the%20kiosk%20session%20are%20not%20deleted%20when%20Microsoft%20Edge%20closes.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23kioskdeletedownloadsonexit%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23kioskdeletedownloadsonexit%3C%2FA%3E%3C%2FP%3E%3CP%3E----------------------------------------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKiosk%20mode%20already%20starts%20in%20in-private%20mode%2C%20so%20whatever%20shows%20up%20in%20edge%3A%2F%2Fdownloads%20is%20cleared%20anyway%20with%20this%20policy%20enabled%20or%20not.%20I%20want%20it%20to%20remove%20files%20from%20the%20Download%20folder.%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20like%20to%20know%20what%20this%20policy%20actually%20do%20exactly.%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20my%20environment%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdition%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EWindows%2010%20Enterprise%3CBR%20%2F%3EVersion%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E20H2%3CBR%20%2F%3EInstalled%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%E2%80%8E6%2F%E2%80%8E4%2F%E2%80%8E2020%3CBR%20%2F%3EOS%20build%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E19042.804%3CBR%20%2F%3EExperience%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EWindows%20Feature%20Experience%20Pack%20120.2212.551.0%3CBR%20%2F%3E%3CBR%20%2F%3EExamining%20edge%3A%2F%2Fpolicy%20shows%20the%20policy%20is%20enabled.%3C%2FP%3E%3CP%3EI%20set%20downloads%20folder%20to%20just%20users%20Downloads%20folder%20with%20the%20following%3C%2FP%3E%3CP%3E%3CSPAN%3EComputer%5CHKEY_LOCAL_MACHINE%5CSOFTWARE%5CPolicies%5CMicrosoft%5CEdge%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CP%3EDownloadDirectory%20REG_SZ%20.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStarting%20edge%20in%20kiosk%20mode%20like%20so%20%22%26nbsp%3Bmsedge.exe%20--kiosk%20%3CA%20href%3D%22http%3A%2F%2Fwww.contoso.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ewww.contoso.com%3C%2FA%3E%20--edge-kiosk-type%3Dpublic-browsing%20%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20not%20actually%20deleting%20the%20files%20I%20download%20during%20the%20session%2C%20not%20emptying%20the%20folder%20when%20I%20close%20Edge%20kiosk%20mode.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMicrosoft%20Edge%20Version%2088.0.705.68%20(Official%20build)%20(64-bit)%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144852%22%20slang%3D%22en-US%22%3ERe%3A%20KioskDeleteDownloadsOnExit%20doesn't%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144852%22%20slang%3D%22en-US%22%3E%3CP%20data-unlink%3D%22true%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F967266%22%20target%3D%22_blank%22%3E%40Sergeb83%3C%2FA%3E%26nbsp%3BHello!%26nbsp%3B%20I%20understand%20you%20are%20on%26nbsp%3B%3CSPAN%3EMicrosoft%20Edge%20Version%2088.0.705.68%20(Official%20build)%20(64-bit)%2C%20based%20upon%20the%20Kiosk%20Mode%20Documentation%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-configure-kiosk-mode%23kiosk-mode-supported-features%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-configure-kiosk-mode%23kiosk-mode-supported-features%3C%2FA%3E)%20it%20says%26nbsp%3BDelete%20downloads%20on%20exit%26nbsp%3B(policy)%20is%20available%20with%20Microsoft%20Edge%20version%2089%20(and%20higher).%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Kelly_Y_0-1613608337848.png%22%20style%3D%22width%3A%20483px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F255670iAE90CD4C10D9C72B%2Fimage-dimensions%2F483x46%3Fv%3D1.0%22%20width%3D%22483%22%20height%3D%2246%22%20role%3D%22button%22%20title%3D%22Kelly_Y_0-1613608337848.png%22%20alt%3D%22Kelly_Y_0-1613608337848.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHopefully%20that%20helps!%26nbsp%3B%20Thanks!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2146245%22%20slang%3D%22en-US%22%3ERe%3A%20KioskDeleteDownloadsOnExit%20doesn't%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2146245%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757644%22%20target%3D%22_blank%22%3E%40Kelly_Y%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20saw%20that%20also%2C%20so%20I%20downloaded%20the%20beta%2089%20edge%20and%20the%20result%20is%20the%20same.%3C%2FP%3E%3CP%3EThis%20new%20addition%20is%20also%20part%20of%20their%20release%20notes%20for%20Edge%20version%2087.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20policy%20explanation%20site%20it%20says%3A%3C%2FP%3E%3CP%3EKioskDeleteDownloadsOnExit%20Delete%20files%20downloaded%20as%20part%20of%20kiosk%20session%20when%20Microsoft%20Edge%20closes%20Supported%20versions%3A%3C%2FP%3E%3CUL%3E%3CLI%3EOn%20Windows%20since%2087%20or%20later%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147631%22%20slang%3D%22en-US%22%3ERe%3A%20KioskDeleteDownloadsOnExit%20doesn't%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147631%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F967266%22%20target%3D%22_blank%22%3E%40Sergeb83%3C%2FA%3E%26nbsp%3BHello!%26nbsp%3B%20Thanks%20for%20following%20up!%26nbsp%3B%20I'll%20connect%20with%20the%20Kiosk%20Mode%20team%20and%20double%20check.%26nbsp%3B%20I'll%20follow%20up%20with%20any%20information%2Finsights.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176865%22%20slang%3D%22en-US%22%3ERe%3A%20KioskDeleteDownloadsOnExit%20doesn't%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176865%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F967266%22%20target%3D%22_blank%22%3E%40Sergeb83%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOur%20documentation%20currently%20focuses%20on%20the%20Windows%20Assigned%20Access%20Single%20app%20kiosk%20experience%20as%20specified%20in%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FDeployEdge%2Fmicrosoft-edge-configure-kiosk-mode%23single-app-kiosk%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FDeployEdge%2Fmicrosoft-edge-configure-kiosk-mode%23single-app-kiosk%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%2C%20the%20documentation%20is%20a%20work%20in%20progress%20-%20as%20you've%20noticed%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20cases%20outside%20of%20Assigned%20Access%20single%20app%20mode%2C%20Edge%20kiosk%20tries%20deleting%20the%20files%20from%20the%20user's%20%22%3CEM%3EAppData%5CLocal%5CMicrosoft%5CEdge%5CKioskDownloads%22%3C%2FEM%3E%20folder.%20If%20its%20convenient%2C%20please%20set%20the%20%22%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FDeployEdge%2Fmicrosoft-edge-policies%23downloaddirectory%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EDownloadDirectory%3C%2FA%3E%22%20mandatory%20policy%20to%20%22%3CEM%3E%24%7Blocal_app_data%7D%5CMicrosoft%5CEdge%5CKioskDownloads%3C%2FEM%3E%22%20-%20this%20would%20ensure%20that%20the%20files%20get%20downloaded%20to%20this%20directory%20always%2C%20and%20then%2C%20the%20kiosk%20session%20will%20delete%20all%20the%20files%20downloaded%20to%20this%20directory%20when%20the%20browser%20is%20closed%20or%20the%20kiosk%20session%20times%20out.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20us%20know%20if%20this%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2179928%22%20slang%3D%22en-US%22%3ERe%3A%20KioskDeleteDownloadsOnExit%20doesn't%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2179928%22%20slang%3D%22en-US%22%3EI%20tested%20this%20an%20it%20works%20fine.%20thanks%20for%20the%20clarification.%3CBR%20%2F%3EHowever%2C%20in%20the%20multi-app%20kiosk%20environment%20I%20can%20only%20allow%20removable%20drives%20and%20user's%20Downloads%20folder%20for%20now.%3CBR%20%2F%3ESo%20it%20would%20be%20great%20if%20this%20cleanup%20feature%20for%20enterprise%20would%20work%20on%20other%20directories%20set%20with%20the%20DownloadDirectory%20policy%20where%20permissions%20permit.%3CBR%20%2F%3EOtherwise%2C%20we%20have%20no%20use%20for%20a%20multi%20app%20kiosk%20that%20cannot%20cleanup%20after%20itself.%20This%20policy%20was%20giving%20me%20hopes.%3C%2FLINGO-BODY%3E
New Contributor

Can't get this policy to work... 

 

Description

This policy only applies to Microsoft Edge kiosk mode.

If you enable this policy, files downloaded as part of the kiosk session are deleted each time Microsoft Edge closes.

If you disable this policy or don't configure it, files downloaded as part of the kiosk session are not deleted when Microsoft Edge closes.

https://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies#kioskdeletedownloadsonexit

----------------------------------------------------------------------------------------------------------------

 

Kiosk mode already starts in in-private mode, so whatever shows up in edge://downloads is cleared anyway with this policy enabled or not. I want it to remove files from the Download folder. 

Would like to know what this policy actually do exactly. Thanks.

 

 

Here is my environment:

 

Edition Windows 10 Enterprise
Version 20H2
Installed on ‎6/‎4/‎2020
OS build 19042.804
Experience Windows Feature Experience Pack 120.2212.551.0

Examining edge://policy shows the policy is enabled.

I set downloads folder to just users Downloads folder with the following

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge 

DownloadDirectory REG_SZ . 

 

Starting edge in kiosk mode like so " msedge.exe --kiosk www.contoso.com --edge-kiosk-type=public-browsing " 

 

It's not actually deleting the files I download during the session, not emptying the folder when I close Edge kiosk mode. 

 

Microsoft Edge Version 88.0.705.68 (Official build) (64-bit) 

 

 

8 Replies

@Sergeb83 Hello!  I understand you are on Microsoft Edge Version 88.0.705.68 (Official build) (64-bit), based upon the Kiosk Mode Documentation (https://docs.microsoft.com/en-us/deployedge/microsoft-edge-configure-kiosk-mode#kiosk-mode-supported...) it says Delete downloads on exit (policy) is available with Microsoft Edge version 89 (and higher).  

 

Kelly_Y_0-1613608337848.png

Hopefully that helps!  Thanks!

 

-Kelly

@Kelly_Y 

I saw that also, so I downloaded the beta 89 edge and the result is the same.

This new addition is also part of their release notes for Edge version 87.

 

From policy explanation site it says:

KioskDeleteDownloadsOnExit Delete files downloaded as part of kiosk session when Microsoft Edge closes Supported versions:

  • On Windows since 87 or later

 

@Sergeb83 Hello!  Thanks for following up!  I'll connect with the Kiosk Mode team and double check.  I'll follow up with any information/insights.  

 

-Kelly 

@Sergeb83 ,

 

Our documentation currently focuses on the Windows Assigned Access Single app kiosk experience as specified in https://docs.microsoft.com/en-us/DeployEdge/microsoft-edge-configure-kiosk-mode#single-app-kiosk.

 

Also, the documentation is a work in progress - as you've noticed :)

 

For cases outside of Assigned Access single app mode, Edge kiosk tries deleting the files from the user's "AppData\Local\Microsoft\Edge\KioskDownloads" folder. If its convenient, please set the "DownloadDirectory" mandatory policy to "${local_app_data}\Microsoft\Edge\KioskDownloads" - this would ensure that the files get downloaded to this directory always, and then, the kiosk session will delete all the files downloaded to this directory when the browser is closed or the kiosk session times out.

 

Let us know if this helps

I tested this an it works fine. thanks for the clarification.
However, in the multi-app kiosk environment I can only allow removable drives and user's Downloads folder for now.
So it would be great if this cleanup feature for enterprise would work on other directories set with the DownloadDirectory policy where permissions permit.
Otherwise, we have no use for a multi app kiosk that cannot cleanup after itself. This policy was giving me hopes.

@Sergeb83 ,

 

Are you expecting to use Edge's cleanup facility to clean the directory in an environment where you'll also be configuring other apps to run (as part of the multi-app kiosk setup)? If so, there will be stability issues in the kiosk setup, as there's no guarantee that the files in that folder are not in use when Edge kiosk session is ending and it wants to clean up the files. Hence, we restricted the deletion to an Edge-specific folder, which is not configurable.

 

If you are not using other apps in the multi-app setup, any reason why you wouldn't be able to use the single app assigned access setup? That is programmed to look at the kiosk user's Downloads folder as Edge will be the only app allowed to run and so it can safely delete the files in that common folder. In this setup, the downloaded files will always be deleted so you do not need to set the policy. Also, in this setup, the end user has access to only the Downloads folder and will not be able to change it to other paths either (unlike multi-app or other scenarios where you might have to add additional Windows policies to lock down the end user from accessing other folders) - making "deletion of downloaded content at session end" easily enforceable.

Yeah that's a valid point.
Think I can potentially lock the files in KioskDownloads also with multi-app mode. That mode needs an End Session button.
Thanks for taking time to reply to me again.
@Sergeb83 glad that you're able to work something out! Similar to Legacy Edge running in multi-app kiosk mode, we do not have an "End Session" button for the new Edge when it is run in kiosk mode by any means other than the single app assigned access mode.

As you may have observed, unlike Legacy Edge though, the new Edge has the kiosk offering in non-assigned access setups and also, exposes the idle timeout reset and downloads deletion features outside of the single app assigned access mode.

Hope you're able to leverage the Edge kiosk features for your needs :)