This action is triggered when a user wants to delete a PDF file that they previously uploaded to the system. This allows the user to remove the file from the application interface.
Adding a User File Deletion Action
- Enter the UI Design module and add a Button element from the Elements panel on the left side.
- In the Properties panel, enter text such as ‘Delete File’ in the Label field of the button.
- Select the button and add the OnClick → Device → Delete File From Server action from the + ADD ACTION menu.
Configuring the Delete File From Server Action
- File ID: reportFileId (The ID obtained when the file is uploaded, which can be retrieved from an Action Result, for example.)
With this configuration, when the user clicks the button, the file is completely deleted from the system and free space is created on the server.