Delete File Function

#include <unistd.h>

	unlink("/home/pi/projects/my_file.conf");

Delete Multiple Files Using A Command

#define DB_FILEIO_DIRECTORY_TEMP	"/home/pi/myfolder/temp"

	string CommandString;

	//Delete any old files in the /temp folder
	CommandString = "rm ";
	CommandString += DB_FILEIO_DIRECTORY_TEMP;
	CommandString += "/*.*";
	system(CommandString.c_str());