Questions
Q:

No EntityManager with actual transaction available for current thread – cannot reliably process ‘remove’ call

cannot delete file in database, when I try to delete terminal show this error,

No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call