At least 40 people have been detained for their alleged involvement in the large-scale mob violence, stray arson, stone-pelting, and vandalising public or private properties that were witnessed during a shutdown call here to protest the desecration of a statue of B. R. Ambedkar, the chief architect of Indian Constitution, officials said here on Wednesday.