File entity is not deleting when Media entity is deleting

Created on 30 December 2022, over 1 year ago
Updated 8 February 2023, over 1 year ago

Problem/Motivation

When an asset is unreleased in widen and unpublished in CMS Media is getting deleted but the File entity and its Physical file not getting deleted.

if asset doesn't exist in widen it should be deleted automatically irrespective of Media status in CMS.

Steps to reproduce

Create an asset in widen sync that to CMS, Now unrelease that asset in widen. try to sync that asset into CMS.
First time it will get unpublished if you resync again then it will delete only the Media entity. File Entity remains same.

if you delete an asset in widen which is synced to CMS. If the asset is in published state it is not getting deleted,

Proposed resolution

All the references should be deleted related to widen asset in CMS
if asset is deleted it should delete its references in CMS irrespective of Media status.

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇮🇳India chakkche

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • As with any large-scale project, it pays to engage the services of a skilled and experienced crew of seasoned professionals. A slight mistake can result in a costly catastrophe. So, take your time when the worst weather hits. Instead, turn to a commercial roofing company with your best interests at heart. This company has a staff of trained professionals capable of delivering the highest quality commercial roofing and construction. They are a certified GAF contractor with a myriad of industry certifications. For the discerning eye, the company has a handful of award-winning roofing specialists with years of hands-on business experience. You will find someone better for your needs. They may even have the solution you're looking for. Please take advantage of their free no, obligation quotes and let them show you why they are among the very best in their respective industries. Remember to ask them about their industry-leading warranty options.

  • Status changed to Closed: works as designed over 1 year ago
  • 🇺🇸United States mglaman WI, USA

    We shouldn't be doing this, it's a Drupal thing.

    See https://www.previousnext.com.au/blog/introducing-media-file-delete-module

    Use this module instead to achieve the functionality: https://www.drupal.org/project/media_file_delete

Production build 0.69.0 2024