diff --git a/agent/post/document.php b/agent/post/document.php index 2c08bb52..0f997aae 100644 --- a/agent/post/document.php +++ b/agent/post/document.php @@ -703,6 +703,9 @@ if (isset($_POST['bulk_delete_documents'])) { // Delete all versions associated with the master document mysqli_query($mysqli,"DELETE FROM document_versions WHERE document_version_document_id = $document_id"); + // Delete uploads/document/$document_id if exists + removeDirectory($_SERVER['DOCUMENT_ROOT'] . "/uploads/documents/" . $document_id); + logAction("Document", "Delete", "$session_name deleted document $document_name and all versions", $client_id); } diff --git a/uploads/documents/25/img_aeaefaa4e3465d46a9042600bc1a95d7.png b/uploads/documents/25/img_aeaefaa4e3465d46a9042600bc1a95d7.png deleted file mode 100644 index 2c7af824..00000000 Binary files a/uploads/documents/25/img_aeaefaa4e3465d46a9042600bc1a95d7.png and /dev/null differ