Discussions
-
Can't delete files with powershell
function DropBox-FileDelete { Param ( [Parameter(Mandatory=$true)] [string]$SourceFilePath ) $DropBoxAccessToken = TOKEN HERE $testFile = $SourceFilePath $TargetFilePath="/$testFile" $arg = '{"path": "' + $TargetFilePath + '"}' $authorization = "Bearer " + $DropBoxAccessToken $headers = New-Object…