# DeleteTempInternetFiles Method The DeleteTempInternetFiles method deletes temporary internet files. Syntax
    [long=] SiteKiosk.DeleteTempInternetFiles(showdialog, cache, cookies,
            endsession, history, callback)
Parameters
showdialog | Boolean value that specifies if a dialog should be shown.
cache | Boolean value that specifies if the cached files should be deleted.
cookies | Boolean value that specifies if the cookies should be deleted.
endsession | Boolean value that specifies if the session should be closed.
history | Boolean value that specifies if the history should be deleted.
callback | Callback function that will be called after deleting the files.
Return Value Returns a Long value containing the job ID. Remarks The callback function has two parameters containing the job ID and the number of deleted files. Examples The following example deletes all temporary internet files, closes the current session and shows the number of deleted files in an alert window.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    function callbackfunction(jobID, deletedfiles)
    {
       alert(jobID + 'successfull, ' + deletedfiles + ' files deleted');
    }
    SiteKiosk.DeleteTempInternetFiles(true, true, true, true,
    true, callbackfunction);
    </SCRIPT>
Applies to SiteKiosk v5.5 (and later versions). Back to top