def remove_prefix(self, id):
try:<EOL><INDENT>p = Prefix.get(int(id))<EOL>p.remove()<EOL><DEDENT>except NipapError as e:<EOL><INDENT>return json.dumps({'<STR_LIT:error>': <NUM_LIT:1>, '<STR_LIT:message>': e.args, '<STR_LIT:type>': type(e).__name__})<EOL><DEDENT>return json.dumps(p, cls=NipapJSONEncoder)<EOL>
Remove a prefix.