src/properties/class-papi-property-repeater.php
protected function remove_repeater_rows( $post_id, $repeater_slug ) {
		global $wpdb;

		$is_option     = $this->get_meta_type() === 'option';
		$repeater_slug = $repeater_slug . '_%';

		if ( $is_option ) {
			$table = $wpdb->prefix . 'options';

			// @codingStandardsIgnoreStart
			$query = $wpdb->prepare(
				"SELECT * FROM `$table` WHERE (`option_name` LIKE %s OR `option_name` LIKE %s AND NOT `option_name` = %s)",
				$repeater_slug,
				papi_f( $repeater_slug ),
				papi_get_property_type_key_f( $repeater_slug )
			);
			// @codingStandardsIgnoreEnd
		} else {
			$table = $wpdb->prefix . 'postmeta';
			// @codingStandardsIgnoreStart
			$query = $wpdb->prepare(
				"SELECT * FROM `$table` WHERE `post_id` = %d AND (`meta_key` LIKE %s OR `meta_key` LIKE %s AND NOT `meta_key` = %s)",
				$post_id,
				$repeater_slug,
				papi_f( $repeater_slug ),
				papi_get_property_type_key_f( $repeater_slug )
			);
			// @codingStandardsIgnoreEnd
		}

		$results = $wpdb->get_results( $query ); // WPCS: unprepared sql

		foreach ( $results as $res ) {
			if ( $is_option ) {
				$key = $res->option_name;
			} else {
				$key = $res->meta_key;
			}

			papi_data_delete( $post_id, $key, $this->get_meta_type() );
		}
	}
protected function remove_repeater_rows( $post_id, $repeater_slug ) {
		global $wpdb;

		$is_option     = $this->get_meta_type() === 'option';
		$repeater_slug = $repeater_slug . '_%';

		if ( $is_option ) {
			$table = $wpdb->prefix . 'options';

			// @codingStandardsIgnoreStart
			$query = $wpdb->prepare(
				"SELECT * FROM `$table` WHERE (`option_name` LIKE %s OR `option_name` LIKE %s AND NOT `option_name` = %s)",
				$repeater_slug,
				papi_f( $repeater_slug ),
				papi_get_property_type_key_f( $repeater_slug )
			);
			// @codingStandardsIgnoreEnd
		} else {
			$table = $wpdb->prefix . 'postmeta';
			// @codingStandardsIgnoreStart
			$query = $wpdb->prepare(
				"SELECT * FROM `$table` WHERE `post_id` = %d AND (`meta_key` LIKE %s OR `meta_key` LIKE %s AND NOT `meta_key` = %s)",
				$post_id,
				$repeater_slug,
				papi_f( $repeater_slug ),
				papi_get_property_type_key_f( $repeater_slug )
			);
			// @codingStandardsIgnoreEnd
		}

		$results = $wpdb->get_results( $query ); // WPCS: unprepared sql

		foreach ( $results as $res ) {
			if ( $is_option ) {
				$key = $res->option_name;
			} else {
				$key = $res->meta_key;
			}

			papi_data_delete( $post_id, $key, $this->get_meta_type() );
		}
	}
Remove all repeater rows from the database.

@param int    $post_id
@param string $repeater_slug