eZ Community » Forums » eZ Publish 5 Platform » How can I delete the BinaryFile...
expandshrink

How can I delete the BinaryFile FieldType ... ?

How can I delete the BinaryFile FieldType ... ?

Wednesday 24 January 2018 9:45:57 am

Hi,

How can I delete the BinaryFile FieldType with the content and the file?

I tried this way:

$contentUpdateStruct = $contentService->newContentUpdateStruct();
$contentUpdateStruct->initialLanguageCode = 'eng-GB';
 
$contentUpdateStruct->setField('file', NULL); //does not delete the file

Modified on Wednesday 24 January 2018 10:49:55 am by Kamil Góralewski

  • Add reply
  • Quote
  • Inappropriate ?

No reply yet!

expandshrink
  • Add reply
36 542 Users on board!

Forums menu

Your profile is 11 % complete

Proudly Developed with from