How to format the SDCard using Arduino commands.

I need to implement the SDCard format command. Does anyone know how to format using commands from the SDCard library?

Use the erase() command. It is part of the base class of that library

Use the erase() command. It is part of the base class of that library