def METHOD_NAME(argv, progress=None):
    # pylint: disable=unused-argument
    filename = None
    recurse = False
    simulate = False
    argv = gdal.GeneralCmdLineProcessor(argv)
    if argv is None:
        return -1
    for i in range(1, len(argv)):
        if not argv[i]:
            return Usage()
        if argv[i] == "-r":
            recurse = True
        elif argv[i] == "-simulate":
            simulate = True
        elif argv[i][0] == "-":
            print("Unexpected option : %s" % argv[i])
            return Usage()
        elif filename is None:
            filename = argv[i]
        else:
            print("Unexpected option : %s" % argv[i])
            return Usage()
    if filename is None:
        return Usage()
    if filename == "/":
        user_input = input("Please confirm with YES your action: ")
        if user_input != "YES":
            print("Aborted")
            return 1
    if recurse:
        ret = gdal_rm_recurse(filename, simulate=simulate)
    else:
        if simulate:
            print("gdal.Unlink(%s)" % filename)
            ret = 0
        else:
            ret = gdal.Unlink(filename)
    if ret != 0:
        print("Deletion failed")
    return ret