@yadhul What do you mean with "without writing query on habits table"? You have to reference the habits table somehow in order to delete rows. Either using Laravel or SQL directly on the database.
Habit::query->delete();
// or
DB::table('habits')->delete();
@corvs Thanks for your reply.. I need query on users table and delete Habits information. by not using habits table in query. we should not use habits table in query