Option for removing block not appearing in custom gutenberg block

The issue was that I was missing { ...useBlockProps() } from the encapsulated div.
I was able to resolve the issue by changing the opening div returned in the edit attribute to

<div {...useBlockProps()}>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)