Command to delete all text of file with Nano editor and a Mac keyboard.
Set start position to mark:
ctrl + 6
Mark everything:
ctrl + _
ctrl + V
Delete:
ctrl + K
Alternatively shortly:
hold ctrl followed by 6 + _ + V + K