- Home /
delete files from app(documents directory)
How do I delete files from app(documents directory) from .js? Example: photos. I know it's system.io but I need help with the structuring of it.
Thx 4 any help!! P
Answer by peter · Apr 06, 2011 at 03:17 PM
I got it:
import System.IO; // at the first line of .js script. var DocumentsPath : String = "the path to the file"; var filename : String = "thefilename.png";
File.Delete(DocumentsPath+filename); // just define the path and filename in variables.
Your answer
Follow this Question
Related Questions
Creating a Directory in "My Documents" 2 Answers
Saving File in new directory - Unauthorized Access Exception 1 Answer
How to get audio file as an AudioClip from its path 1 Answer
EditorUtility.OpenFilePanel uses \ FileInfo.Name uses / 0 Answers
How to write files to the streaming asset folder in Android at runtime 1 Answer