#include #include int main() { // 削除するファイルのパス LPCWSTR filePath = L"C:\\test\\1.txt"; // ファイルを削除する if (DeleteFile(filePath) == 0) { // 削除に失敗した場合の処理 printf("Failed to delete file.\n"); return 1; } // 削除に成功した場合の処理 printf("File deleted successfully.\n"); return 0; }