Skip to content

Remove entries

Adrian Preuß edited this page Jan 10, 2018 · 1 revision
API.remove(table, parameters, callback);
Variable Default Type Description
table <MySQL-Table> String Your MySQL-Table
parameters {} Object Some data there will be removed
callback <Callback> Function Callback with the result

Results

The result of your Callback is the count of removed entries/rows.

Examples

API.remove('yourTable', {
	id:	2, // Remove all entries with the id "2"
}, function onSuccess(count) {
	// Result
});