I am creating an upload page for my sample program in ASP.NET. Now I am uploading student documents certificates,marksheets
in my local storage and I am saving that file in specific directory.D:\Vinayak\Student\Profiledocs\610\myfile.txt
Upload was worked successfully.
Now I am delete a specific student profile documents in my local storage using my ASP.NET page.
D:\Vinayak\Student\Profiledocs\610\myfile.txt
is my file storage directory.
Now how I am to delete this sub folder and files \610\myfile.txt
.
610
is a column value named by studentid
in my student details
table.
If I am select any student id like 610 or 12
whatever it is.
The student files are saved in my parent folder Profiledocs
.
like this
\Profiledocs\610\myfile.txt
\Profiledocs\121\myfile1.txt
\Profiledocs\321\myfile2.txt
Now what I am make to delete the sub folders and files in my parent folder Profiledocs