public function afterDelete(Event $event, EntityInterface $entity) {
		if ($this->_checkEvent($event)) {
			$event->result = $this->_deleteFile($event);
			$event->stopPropagation();
		}
	}
public function afterDelete(Event $event, EntityInterface $entity) {
		if ($this->_checkEvent($event)) {
			$event->result = $this->_deleteFile($event);
			$event->stopPropagation();
		}
	}
public function afterDelete ( Event $ event , EntityInterface $ entity ) { if ( $ this -> _checkEvent ( $ event ) ) { $ event -> result = $ this -> _deleteFile ( $ event ) ; $ event -> stopPropagation ( ) ; } }
File removal is handled AFTER the database record was deleted.

No need to use an adapter here, just delete the whole folder using cakes Folder class

@param \Cake\Event\Event $event
@param \Cake\Datasource\EntityInterface $entity
@return void
File removal is handled AFTER the database record was deleted .