# WorkflowFileUpload object- press "Delete" from code behind?

**URL:** <https://discuss.workflowgen.com/t/workflowfileupload-object-press-delete-from-code-behind/679>\
**Category:** General WorkflowGen Discussion\
**Created:** [January 20, 2017, 10:18pm UTC](https://discuss.workflowgen.com/t/workflowfileupload-object-press-delete-from-code-behind/679 "2017-01-20T22:18:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kevin.lee](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kevin.lee](https://discuss.workflowgen.com/u/kevin.lee)\
**Post date:** [January 31, 2017, 6:08pm UTC](https://discuss.workflowgen.com/t/workflowfileupload-object-press-delete-from-code-behind/679/2 "2017-01-31T18:08:27Z")

</div>

for file upload control in WFG, there is no visible field that you can just delete the value. To “delete” the file, there has been an old trick to clear the file by updating the associated form data value.

See article here if it can help:

> [@How can I delete a file attachment instead of adding/updating it using the standard .NET FileUpload control?](https://discuss.workflowgen.com/t/how-can-i-delete-a-file-attachment-instead-of-adding-updating-it-using-the-standard-net-fileupload-control/199):
>
> Issue How can I delete a file attachment instead of adding/updating it using the standard .NET FileUpload control? Background To do this, you need to set the FileUpload control as IN/OUT parameter in the WorkflowGen action so that the uploaded file can be imported and exported between the web form and WorkflowGen process data. When using the .NET FileUpload Control, a user can only browse and upload a file to WorkflowGen upon submission. This allows the user to update the file, but not to dele…

---

_[View the full topic](https://discuss.workflowgen.com/t/workflowfileupload-object-press-delete-from-code-behind/679)._
