command_rm.rst 572 B

123456789101112
  1. Command-Line
  2. --------------------
  3. * :manual:`cmake(1)` gained a ``rm`` command line
  4. option that can be used to remove directories (with ``-r`` or ``-R`` flag)
  5. and files.
  6. If the ``-f`` flag is not specified, attempting to remove a file that
  7. doesn't exist returns an non-zero error code.
  8. This command deprecates ``remove`` and ``remove_directory``.
  9. The ``remove`` implementation was buggy and always returned 0 when ``force``
  10. flag was not present and a file didn't exist. It cannot be fixed without
  11. breaking backwards compatibility so we introduced ``rm``.