-4

getting the error in Jenkins console output for the below execute shell command.

sudo -S rm -rf /home/sharmila/Trash-files/{*,.*}

I have created a folder by name "Trash files" and have added two dummy files in it. Objective is to delete the Trash files folder please help how to resolve error in Screenshot in Jenkins

Luuk
  • 150
  • 9
  • 2
    It is unclear what error you are getting, because the screenshot is missing. Also can you share a description of which files you are trying to delete? – Luuk Aug 30 '23 at 09:40
  • When this was working without error, probably all files in `/home/sharmila` would have been deleted (and in the subdirs of that directory) – Luuk Aug 30 '23 at 09:52
  • I have created a folder by name "Trash files" and have added two dummy files in it. Objective is to delete the Trash files folder – sharmila pilla Aug 30 '23 at 16:28
  • "Trash files" is not the same as "Trash-files". If you insist on using spaces in names, you need quotes to preserve them. – ubfan1 Aug 30 '23 at 22:23
  • This question is answered already, see: [How do I remove a folder](https://askubuntu.com/questions/201775/how-do-i-remove-a-folder#:~:text=But%20in%20the%20sense%20of,f%20to%20erase%20a%20folder.&text=If%20you%20want%20to%20delete,the%20file%20or%20delete%20it). – Luuk Aug 31 '23 at 07:13

0 Answers0