How do I delete a file/folder that's in RTC but also ignored by .jazzignore rule set?
How do I delete a file/folder that's in RTC but also ignored by .jazzignore rule set? Once I load a work space I see some loaded files that were added to the repository before the ignore rules were introduced. I can delete these but they don't show up in the change set thus preventing me from delivering the deletion. How do I do delete these? Do I really need to exclude them first from .jazzignore, delete, deliver, and then include them again into .jazzignore? Any easier way? Thanks.
Accepted answer
Yes, you will have to temporarily un-ignore the file. When a file is in the ignore list... it prevents 'any' type of change from being detected (whether it is a modification/add/delete). Once you un-ignore (or exclude) the file from the ignore list, and delete it, you can then deliver the file deletion in a change set, but you don't have to deliver any change to your ignore file (i.e. you can just undo that change after you have delivered the file deletion).
Comments
But can this be done in bulk for hundreds of files that are now ignored by multiple .jazzignore files? I know Git has a couple of commands to do just that, it's a common use case.
Thanks, I'll do that. I'm a newbie so I wanted to make sure that I'm not missing some hidden better way.
One other answer
Please see https://jazz.net/library/article/1006
Comments
Sorry, this is not what's asked. The link is about permanent deletion of content, say for legal reasons, from the repository. I just have stray .vs folders that were checked in long time ago, and then later .jazzignore files were added to ignore those. They still come every time we load workspace. I'd like to get rid of them in buld: I have hundreds of different files/folders spread in the repository, with many .jazzingore files. I thought it's a common enough use case to have a generic solution that can be applied for the whole repository: delete all files that are currently excluded by the .jazzignore files. Git provides a couple of commands that do just that.
Well, the data is in there and the only way to get it out of there is explained. David has already answered on the other aspects.
Thank you for your help. I'll keep in mind this way of deletion in case I need it.