Hello, You want to remove the ASM module or clean the sql database? For removig the ASM deprovision it. You can check https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-system-essentials-11-6-0/7.html , if you have small memory not disk space you can set the ASM module to nominal and the other modules also can be set to nominal as this may also help.
For to clean the ASM database you can see https://support.f5.com/csp/article/K6992 and for the AVR https://support.f5.com/csp/article/K22543214 . I still suggest if you have disk space issue to first check https://support.f5.com/csp/article/K14403 as it could a bug like https://support.f5.com/csp/article/K53030991 or something else.
Also keep in mind that for F5 virtual editions or F5 vCMP quests you can manually increase the disk space https://support.f5.com/csp/article/K14952 and https://support.f5.com/csp/article/K24156414
Be carefull if the ASM is used in production to protect the traffic.