def remove_user_by_id(email: str) -> bool: """Removes an user from the user table. Args: email: An user's email. Returns: Returns true if an user is removed, otherwise returns false. """ return remove_instance_by_field(User, User.email, email)
def remove_group(group_id: int) -> bool: """Removes a group from the role table. Args: role_id: The id of a group. Returns: Returns true if a group is removed, otherwise returns false. """ return remove_instance_by_field(Group, Group.id, group_id)
def remove_role(role_id: int) -> bool: """Removes a role from the role table. Args: role_id: The id of a role. Returns: Returns true if a role is removed, otherwise returns false. """ return remove_instance_by_field(Role, Role.id, role_id)
def remove_role_by_id(role_id: str) -> bool: """Removes an employee from the employee table. Args: email: An employee's email. Returns: Returns true if an employee is removed, otherwise returns false. """ return remove_instance_by_field(Role, Role.id, role_id)
def remove_employee_by_id(employee_id: int) -> bool: """Removes an employee from the employee table. Args: email: An employee's email. Returns: Returns true if an employee is removed, otherwise returns false. """ return remove_instance_by_field(Employee, Employee.id, employee_id)
def remove_app(app_id: int) -> bool: """Removes the app with the specified id from the database. Args: app_id: The id of the app to be removed. Returns: Returns true if an app is removed, false otherwise. """ return remove_instance_by_field(App, App.id, app_id)