Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4624096
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:04:54+00:00 2026-05-22T03:04:54+00:00

I have a directory structure like so: root_dir dir1 dir2 file1.txt file2.txt sub_dir file3.txt

  • 0

I have a directory structure like so:

root_dir
  dir1
  dir2
    file1.txt
    file2.txt
    sub_dir
      file3.txt
      file4.txt

What is the best way to delete dir2 and all it’s sub-elements using rmname? Can I simply do ‘cleartool rmname dir2’ and have it recursively delete all it’s contents?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:04:55+00:00Added an answer on May 22, 2026 at 3:04 am

    You only need to:

    cleartool checkout -nc root_dir
    cleartool rmname dir2
    cleartool checkin root_dir
    

    That remove the reference to dir2 in the new version of root_dir, making dir2 and all its content invisible (not reachable).
    And you can easily restore dir2 (and all its content) by merging the previous version of root_dir (which was still referencing dir2) with the current version (the one where you rmname’d dir2) in order to recreate a new version where you get back dir2.

    Note: when using rmname, you might have an error message mentioning that the element is in checked out, even though it is not checked out in the branch where you are doing the rmname.
    using rmname -force is the solution to still perform the rmname: see this technote.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have directory structure like this src main resources text.txt scala hello world.scala test
I have directory structure like so: |-- ROOT |-- Project1 | |-- application |
When creating gems, I often have a directory structure like this: |--lib |-- helpers.rb
I am a beginner in SVN.I have the SVN directory structure like this: |-trunk
I have a directory structure that looks like this: /a/f.xml /b/f.xml /c/f.xml /d/f.xml What
Imagine I have a directory structure like so: parentDir\dirA\foo\ parentDir\dirB\foo\ parentDir\dirC\ parentDir\dirD\bar\foo\ parentDir\dirE\foo\ parentDir\dirF\
Say I have a directory structure like so: /public /public/company /public/globals /public/globals/images /public/jobs /public/jobs/it
I have currently the following problem. I have a directory structure like root -
I have a directory structure like com/example/web under the root directory which contains a
I have a directory structure like this /ub/ /ub/img/ /ub/inc/ Basically I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.