I have created a program with C# WinForms where the user enters personal information along with uploading an image of their choice, all the entered data is stored in a single SQL Server table while the image is stored in a folder that is located on the Desktop, the stored image has the same name as person's name, (for example if they type "john" in the process of entering their data, the image stores with the same name).
Through the use of SQL Server Agent I want to delete the image when the record that is associated with the image is deleted, the row also automatically gets deleted using SQL Server Agent.
Is there any way to implement this, it would be amazing if this can be done using SQL Server Agent and not a manually executed procedure.