Unable to delete attached file from folder programmatically

I am unable to delete attached files from their folders programmatically or even through the wordpress admin as the admin user. The attachment record deletes from the database but the file remains in the folder. I can retrieve that file successfully using get_attached_media( ‘application’, $post_id ) I can delete the record using wp_delete_attachment($post_id, true) But…

Details