For some basic MDM profiles (not Knox Configure or Knox Enrollment), a factory reset may remove restrictions:

: Ensure the tool supports your specific version, whether it's Android 13, 14, or 15 How to Use an MDM Unlock Tool