Package org.gradle.api.file

# Interface DeleteSpec

All Known Implementing Classes:
  `Delete`

public interface DeleteSpec
A specification for deleting files from the filesystem.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DeleteSpec`
  `delete(@Nullable Object... files)`
  Specifies the files to delete.
  `Property<Boolean>`
  `getFollowSymlinks()`
  Specifies whether or not symbolic links should be followed during deletion.
  `void`
  `setFollowSymlinks(boolean followSymlinks)`
  Specifies whether or not symbolic links should be followed during deletion.

- ## Method Details

  - ### delete

    DeleteSpec delete(@Nullable Object... files)
    Specifies the files to delete.
    Parameters:
      `files` - the list of files which should be deleted. Any type of object accepted by `Project.files(Object...)`

  - ### getFollowSymlinks

    @Input @Optional @Incubating Property<Boolean> getFollowSymlinks()
    Specifies whether or not symbolic links should be followed during deletion.
    Since:
      9.7.0

  - ### setFollowSymlinks

    void setFollowSymlinks(boolean followSymlinks)
    Specifies whether or not symbolic links should be followed during deletion.
    Parameters:
      `followSymlinks` - deletion will follow symlinks when true.