Delete files uploaded using the wp_upload_bits() function

Within your code snippet $upload['file'] will contain the full file path to the file. You could save this in the meta so that it’s retrievable whenever you want to delete the file.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)