List all files and delete thorugh ipfs-http-client

I upload image and video thorught ipfs client.
I use add method in this way:

let data = {
        content: bufferFile,
        path: path

    const result = await client.add(data)
    return result

Path is only the name of the file, I don’t use any folder, so I think files are saved in the root folder.

I want to obtain all the files in the root folder, but ls method of the library wants cid folder (that I don’t know).

Then I obtain file I want to delete them, but now I can’t because I don’t know their cid.

Can you help me?