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

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from