Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to delete attach file in Portal

tuitendung
Tera Contributor

In "Create New" form, I need to delete an attached file when the user changes an option. Is there any solution to my issue, and thank you for your assistance.

tuitendung_0-1704984252144.png

 

 

7 REPLIES 7

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

You can delete it using the x as highlighted below

AnuragTripathi_0-1704984078561.png

 

 

Also, I would advise you that when you add a screenshot on this community please refrain from showing client name or any other confidential data.

-Anurag

Hi @Anurag Tripathi ,
I want it auto deleted when user change option. Can I use client script to handle it?

 

My bad, I read the question wrong,

Check this thread where Chuck has answered similar question.

 

Solved: Re: Deleting Attachments from a Catalog Item - ServiceNow Community

-Anurag

Hi @Anurag Tripathi 
In my case, this ticket has not been submitted yet and is currently present on the Portal view. I have tried manually deleting the attached file from the "sys_attachment" table, but it seems that even after successful deletion, the UI on the Portal is not being updated.