TFS 2015 - Delete Build Artifacts
<p>How to step up TFS 2015 Update 2 to delete artifacts when build is deleted?</p>

<p>Is this possible?</p>

<p><a href="https://i.stack.imgur.com/LuBJ8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LuBJ8.png" alt="enter image description here"></a></p>

<p>EDIT: Add retention screen shot</p>

<p>I am using the default retention policy but it is NOT deleting artifacts from the drive. </p>

<p><a href="https://i.stack.imgur.com/mEQCR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mEQCR.png" alt="enter image description here"></a></p>

<p>EDIT: Add Copy and Publish Build Artifacts</p>

<p><a href="https://i.stack.imgur.com/xqq5f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xqq5f.png" alt="enter image description here"></a></p>

<p>EDIT: Add Working Folder</p>

<p>I added a powershell to display all environment variables and it said my workingFolder = E:TfsBuilds\Agent1_WorkPlace\5\s</p>

<p>Do you a powershell to set workingFolder to default?</p>

<p>Here is the file structure i have: </p>

<p><a href="https://i.stack.imgur.com/xD9E0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xD9E0.png" alt="enter image description here"></a></p>