Remove a File or Directory

The Assets provider allows you to remove a file or directory that you have previously uploaded or created. This is a permanent action that cannot be reversed. You can set recursive to true to delete sub files and folders too, this is false by default.

Method Signature

remove(remoteFilePath: string, recursive?: boolean)

Removing a File or Directory

const session = vcr.createSession();
const assets = new Assets(session);

await assets.remove('imgs', true);