Delete Data
Description
A function from your project that is used to delete data from your table.
tip
Your function that will return "true" after successfully deleting data or "false" if not deleted successfully
Example:
src/admin/actions.ts
export async function deleteHero(params: string | number | null | undefined): Promise<boolean> {
/* database query that will return true or false */
return data;
}
Params:
- The parameters can be any data you use to delete