what the difference between delete sys file ssl-cert and delete sys crypto cert ?
Actually, there is no difference between:
delete sys crypto cert test
delete sys file ssl-cert test
The difference between module 'crypto' and 'file ssl-cert' is only during creation. Let me show you with an example:
# Create cert with crypto
create sys crypto key test key-size 1024
create sys crypto cert test key test common-name test.com
# Create cert with file ssl-cert
create sys file ssl-cert test source-path http://repo.example.com/test.crt
As you can see above, one for importing files ('file ssl-cert') and the other one for creating them by F5 device.
Despite this, both are stored in the same database.