Delete a file at a given path. Without a beginning forward slash, the path will default to the user’s home directory. Examples:

  • myFile.jpg -> Delete a file called “myFile.jpg” in your home directory
  • /pathToHomeDirectory/myFile.jpg -> Delete a file called “myFile.jpg” in your home directory, inputting the absolute path
  • /differentPath/myFile.jpg -> Delete a file called “myFile.jpg” somewhere other than your home directory, using an absolute path
  • someFolder/myFile.jpg -> Delete a file called “myFile.jpg” inside of an existing folder in your home directory.

Inputs:

  • File Path - The path to the file that you want to delete, including the filename