def METHOD_NAME(ctx, dir_path):
    """Return a list of commands that removes any files that are not .c or .h"""
    filter_commands = []
    # cc_library will complain if there are files that are not one of (.c, .cc, .cpp, .h, ...)
    filter_files_template = "ls -d {dir}/* | grep --invert-match --extended-regexp \'{choose}\' | xargs  --no-run-if-empty rm "
    choose = "**.[.][ch]$"
    filter_commands.append(filter_files_template.format(dir = dir_path, choose = choose))
    return filter_commands