#coding=utf8
def frewrite_del(type,source,body):
 if new_access(source[1]+u"/"+source[2])>3: smsg(type, source, ("can`t delete", "deleted")[del_rewrite(source[1], int(body[body.find(" ")+1:]))]);
newreg({"func":frewrite_del, "recmd": r"^rewrite_del(\ .*)?$", "recmds": r"^rewrite_del\ [1-9]\d*$","syn":"rewrite_del <num>","ctg":"rewrite", "name":"rewrite_del","help":u"no help"})