To delete a deviation you need to have the permission to delete.
A deleted deviation can not be restored.
Search this documentation
You can also delete a deviation from the 3 dot menu by selecting the document and the delete symbol.