Front or rear sprocket? I don't have a Ktm but I'd say You need to remove the rear wheel so you can loosen the chain. Then unbolt the sprocket to change it.
open