Dynamic Deletion Process
- User-specific file paths or file IDs can be determined dynamically.
- For example, they can be assigned as parameters based on user selection or the file ID from the data source.
- This allows each user to delete their own files or the files associated with their records.
Confirmed Deletion Process
This can be done in the application as follows:
When the ‘Delete File’ button is clicked, a modal, alert or confirmation dialog box opens first.If the user clicks “Yes”, the Delete File From Server action is triggered; if they click ‘No’, the process is cancelled.
- This prevents accidental file deletion.
Post-Deletion Notification
- When the deletion process is successfully completed, a visual notification can be displayed to the user.
- These feedback messages improve the user experience and clearly indicate the status of the process.
Multiple File Deletion
- If multiple files need to be deleted:
- The same action can be triggered separately for multiple file IDs.
- For example, file IDs are retrieved in a list, and the Delete File From Server action is run for each file in the list using a loop.
- Alternatively, if batch deletion support is available in the backend, the batch deletion action can also be used.
Technical Risks
- Invalid File Path: If the file path is incorrect, the file cannot be deleted. The directory must be defined correctly and configured via Configuration Manager.
- Unauthorised Access: If the user does not have delete permissions, the operation should be blocked. Authorisation is recommended.
- Server Delay: The file deletion process may take some time. Visual feedback about the process should be provided to the user.
The Delete File From Server action is a practical solution for file cleaning, user content management, and server optimisation in Kuika applications. With its advanced configuration and broad platform compatibility, it improves the user experience and provides ease of control for system administrators.