def delete(id): html_main = "You Can delete an Id." if id == "0": html = "Please Input <id>" else: test_del = models.Test.query.filter_by(id=id).first() db_delete(test_del) html = "delete: id:%s" % (id) return render_template('sub.html', page_title="Delete", html_main=html_main, html_sub=html)
def clear(): db_delete(-1)
def delete(id): db_delete(id)
def delete_chat(message): db.db_delete(message.chat.id) bot.send_message(message.chat.id, 'Данные по карме в вашем чате удалены')
def delete(cls, home_id: str) -> bool: return db_delete( Key={TableKey.PARTITION: TablePartition.HOME, TableKey.SORT: home_id}, ConditionExpression="attribute_exists(#id)", ExpressionAttributeNames={"#id": TableKey.SORT}, )
def delete(match_id: str) -> Optional[Dict[str, Any]]: return db_delete(Key={ TableKey.PARTITION: TablePartition.MATCH, TableKey.SORT: match_id })