From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D4A521A1E30 for ; Wed, 12 Oct 2016 03:49:05 -0700 (PDT) Received: by mail-it0-x232.google.com with SMTP id l13so141429746itl.1 for ; Wed, 12 Oct 2016 03:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=RFOtmLBpkklgizi/0vngH4MNT4D45t7ZwtJ9bf1u6FI=; b=0bAnSrICmF/BTKmo6nAL8Uc4CtJ8dkyKVm67EZ+/GCI+P2YoVKIOPlw7ZjCaWub5PH Mi7FawHOhCgUay1EWvpBCh7u2chs6mtu8YJP8xM/6/IpL3l7bOYaqCTF/0tWNgYeeEUh tg7Ke0kE+YomDTJzlZQAHabN3Q4bDxNHHksN/ULYhNhZzLxa9Cl8aXa8EEKW1Zh0Rklj VsYe/uuwQrNpJlnkdlakHUIn47HbTYFoRHvPJJ64TScpSIbNyLFHuFKft9E7HAEc5Exf Aefsug4aOfuICBWxuh16w78kHLSvx4co8pxvoezErnKormL+3ctN10GFz1BCFpNCkoa1 F9mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RFOtmLBpkklgizi/0vngH4MNT4D45t7ZwtJ9bf1u6FI=; b=k5x8ueTexGzhfz13ihzHLsFLPGTfWPQSa7DEKgC3BoQr+IQu65rBwWBSqsVtF7e8eH EJsc1kQ4HBm2MAU+iIAv2mGu+831KksUrg2+T7oPnCqjiIjSIepLCM2TreQcBIPmqYr7 GVGMwSy8B79ot0ysyqVZfBdPLm2H6N3M0+LfVQK+ncyCUxJokzFv37nlzUWJmht6FkYn M3Gxpeg0KolEdSX+648nTZygEw6z69bXGxrV3KUbWTKnWepQLwZfSC8WWhK38KwerKpi z99BCoZ3twkmxTtrtdvFvZ+ZjSXYvekpABfp3rRwey07sLmar4kF3pZ8TIo9v349Nbhi t/mg== X-Gm-Message-State: AA6/9Rm7YvkO452KCZaYYEbX8H05mZaucugRvfvGUoEwAayDu0zf8LAKY6ub1HP+MK4PEjyT1J84oeAkoo8Emw== X-Received: by 10.36.147.135 with SMTP id y129mr778489itd.11.1476269344971; Wed, 12 Oct 2016 03:49:04 -0700 (PDT) MIME-Version: 1.0 From: GN Keshava Date: Wed, 12 Oct 2016 10:48:54 +0000 Message-ID: To: "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Format a volume in UEFI (or delete all files) X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 10:49:06 -0000 Content-Type: text/plain; charset=UTF-8 Hi all, I need to format fs1: (or delete all files and folders in root directory) from my UEFI application. I'm able to use file system APIs such as Open, Write or Delete too. But Delete API needs File (file path) as argument, but what I want is delete all files (irrespective of file name). What could be the best method? Is there any API to directly delete all files? If not, How to go through (Open) all files and delete each? How I can get each file and folder names in a directory programmatically ? Thanks. With regards, Keshava