Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes


Accepted answer

Permanent link

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).

Sergei Bobyr selected this answer as the correct answer

0 votes

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. 

Instead of trying to figure out what 'part' of the ignore file to modify (since the ignore file can be composed of name pattern matching), just delete the ignore file(s), then bulk delete the actual files you want (followed by a check-in and deliver of the desired file deletions), then just 'undo' the pending local deletion of the ignore file (since you did not check the deletion of the ignore file in your repository workspace, there's no risk that this will impact the rest of the team).

This should be pretty fast to do, especially considering how rare of a use case this is (i.e. I can't find any existing work item requesting this feature, or a similar question on this forum asking about it)

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

Permanent link

 Please see https://jazz.net/library/article/1006

0 votes

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. 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023
× 27

Question asked: Jan 18 '19, 11:31 p.m.

Question was seen: 2,884 times

Last updated: Jan 23 '19, 12:16 a.m.

Confirmation Cancel Confirm