Title: Cannot delete uploaded file
Last modified: January 26, 2018

---

# Cannot delete uploaded file

 *  [tatitati26](https://wordpress.org/support/users/tatitati26/)
 * (@tatitati26)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cannot-delete-uploaded-file/)
 * Hi,
 * first of all, thank you very much for this excellent plugin! I’m using it for
   the first time and I have issues deleting an uploaded file (both on frontend 
   in a record form and on backend in the participants data list). I have checked
   the FTP upload direction and the file is being deleted, but the file name still
   seems to be set in the database.
 * Is this my fault, am I the only one having trouble deleting files? Updating records
   and everything else works fine and like I said, the file that I need to delete
   really gets deleted, but after this the file name still shows on the list and
   it looks like it is still there (the database field content does not get deleted).
 * Could you please help me? Thank you in advance and keep up the great work!
    Tatjana

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cannot-delete-uploaded-file/#post-9909272)
 * Check on the “Allow File Delete” setting in the Participants Database settings
   under the general tab. If that is unchecked, then deleting a file only removes
   the reference to it in the record. That actual file remains on the server at 
   the “File Upload Location”
 *  Thread Starter [tatitati26](https://wordpress.org/support/users/tatitati26/)
 * (@tatitati26)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cannot-delete-uploaded-file/#post-9909449)
 * Hi,
 * thank you for the quick response. The setting “Allow File Delete” is checked.
   Actually, the problem is not the deleting itself – as I said, I checked the uploads
   folder after trying to delete a file and the file has been really deleted. But
   the file name still appears in the database and on the website so what is not
   getting deleted is the database entry.
 * I don’t know why that happens, I also tried installing the plugin on another 
   wordpress installation and the problem remains there, too. Is it possible that
   this is a bug? Deleting the file from the wordpress backend also does not work
   properly – that means the file gets deleted but the name still shows so it looks
   like it is still there which is strange. Do you have a solution for this?
 * Thank you in advance, I really appreciate your help.
    Tatjana
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/cannot-delete-uploaded-file/#post-9909799)
 * Got it…checked this and yes, it’s not deleting the value from the record.
 * This is actually due to a couple of line that are “commented out”in the main 
   script: in participants-database.php on line 1904, you’ll see:
 * // unset( $_POST[$column->name] );
    // $post[$column->name] = ”;
 * remove the double // from both lines and the value will be deleted from the record.
 * Thanks for catching my mistake!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot delete uploaded file’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [file upload](https://wordpress.org/support/topic-tag/file-upload/)

 * 3 replies
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/cannot-delete-uploaded-file/#post-9909799)
 * Status: not resolved