Article 137 [source]

Spanish Criminal Code
English translation

Entries of security measures imposed pursuant to this Code or other criminal laws shall be cancelled once the respective measure has been fulfilled or prescribed; meanwhile, they shall only appear on certificates issued by the Registry to Judges or Courts or administrative authorities, in the cases established by law.