I blocked the extension installation on chrome, with that un approved extension are blcoked but now I want to remove the un approved extension which is installed previously. Is there any way to removed it?
I tried to remove the extension ID with script but in Chrome browser it shows corrupted not removing completely.
you can block the extension ID specifically or block all extensions with the blocklist (the allowlist extensions are still allowed). Once the extension ID is blocked Chrome will remove it when the new policies refresh, and the user is notified.
It is not removing, it just disable the extension and it is appears on the Chrome extension page.
I have tested the script manually quite a bit, and it should work.
#!/bin/bash
# Replace with your extension ID
EXTENSION_ID="your_extension_id_here"
# Path to Chrome extensions directory on macOS
EXTENSION_DIR="$HOME/Library/Application Support/Google/Chrome/Default/Extensions/$EXTENSION_ID"
# Check and remove the extension folder
if -d "$EXTENSION_DIR" ]; then
rm -rf "$EXTENSION_DIR"
echo "Extension $EXTENSION_ID removed successfully."
else
echo "Extension $EXTENSION_ID not found."
fi

Are you refreshing policies and relaunching the browser after applying the new config profile, or running the scripts?
Yeah, tried still same like in the screenshot.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.