I\'m trying to delete files from a specifc folder. My deleteFile() function only deletes on its home folder, not on /tmp folder which is what I need. I
deleteFile()
/tmp
You need to include the folder path in the argument to remove():
remove()
char fullpath[40] = "C:/cygwin/tmp/"; strcat(fullpath, filetodelete); status = remove(fullpath);