def uninstall_bash_completion(self, script_name=None, dest="<STR_LIT>"):
if '<STR_LIT>' in os.environ and '<STR_LIT>' not in os.environ:<EOL><INDENT>os.environ['<STR_LIT>'] = os.environ['<STR_LIT>']<EOL><DEDENT>dest = expanduser(dest)<EOL>if script_name is None:<EOL><INDENT>script_name = sys.argv[<NUM_LIT:0>]<EOL><DEDENT>lines = []<EOL>remove_line = '<STR_LIT>' % script_name<EOL>with open(dest, '<STR_LIT:r>') as f:<EOL><INDENT>for line in f:<EOL><INDENT>if line.strip().startswith('<STR_LIT:#>'):<EOL><INDENT>lines.append(line)<EOL>continue<EOL><DEDENT>if remove_line in line: continue<EOL>lines.append(line)<EOL><DEDENT><DEDENT>with open(dest, '<STR_LIT:w>') as f:<EOL><INDENT>f.write('<STR_LIT>'.join(lines))<EOL><DEDENT>
remove line to activate bash_completion for given script_name from given dest

        You can use this for letting the user uninstall bash_completion::

            from argdeco import command, main

            @command("uninstall-bash-completion",
                arg('--dest', help="destination", default="~/.bashrc")
            )
            def uninstall_bash_completion(dest):
                main.uninstall_bash_completion(dest=dest)