# Summary

This module is used to delete all content and/or users from a site. This is mainly a developer tool, which can come in handy in several cases, listed below.

# Project URL

https://www.drupal.org/project/delete_all

# Where is the code?

https://www.drupal.org/project/delete_all/releases/8.x-1.0
https://www.drupal.org/sandbox/dipakmdhrm/2708409

# Estimated completion date

31st May 2016

# Dependencies

NA

# Who's doing the port?

https://www.drupal.org/u/dipakmdhrm

# What help do they need?

  • Need maintainer access to actively release new versions.
  • Need help with creating automated tests.

# D8 roadmap

Proposal for Drupal 8 version:

  1. Separate the logic (in delete_all) & presentation(in delete_all_ui)
  2. Use Batch API.
  3. New commands:
    • delete-all-delete-user (dadu)
    • delete-all-delete-content (dadc)

Implementation:

  1. DeleteControllerBase as controller base for all the delete controllers.
  2. UserDeleteController extends DeleteControllerBase for User deletion.
  3. ContentDeleteController extends DeleteControllerBase for Content deletion.

Status:

Completed:
User Delete functionality is completed.

Remaining:
- Content deletion.
- Automated tests.
- ui module.

# Background and reference information

Unknown

Comments

dipakmdhrm created an issue. See original summary.

dipakmdhrm’s picture

This is going to be my first module port for D8.. Yay!

dipakmdhrm’s picture

Issue summary: View changes
gaurav.goyal’s picture

Hey,

Have you started work on this? I'd like to help you with the port, let me know if I can be of some help.

Hammad Ghani’s picture

Hello Khalid Baheyeldin (kbahey),

We , "The Drupal Geeks" https://www.drupal.org/drupal-geeks , a subsidiary of Ameex Technologies http://www.ameexusa.com/ are planning to run a codesprint- module porting to D8 in the early weeks of May. From our initial analysis , we see that the module Delete All 'https://www.drupal.org/project/delete_all' is widely used in Drupal websites . Porting the module to D8 is the need of the hour and we would be happy to do the same as a part of the sprint. I will be taking ownership for the module and keeping you posted about it. Just wanted to know if anyone already started on this, is it on github?

Thanks
Hammad

dipakmdhrm’s picture

@Hammad Ghani + @gaurav.goyal

I have started the port on this.
Following the instructions provided here I've created a sandbox project where the code will reside.

I haven't pushed the code yet on repository as I haven't committed the most of it. I'll be doing it today and push the code by the end of the day.

Porting is not complete yet and I would be glad if you guys can help.

dipakmdhrm’s picture

Issue summary: View changes
Hammad Ghani’s picture

Hi Dipakmdhrm,

I am looking forward to work with you on porting this project to Drupal8, I have also started analysis work on porting Delete All module to Drupal 8, once i complete it i will share my code so that we can easily port this module to Drupal 8, Let me know if you need any help from me.

Thanks,
Hammad

dipakmdhrm’s picture

Issue summary: View changes
kbahey’s picture

@dipakmdhrm

You are the first person to provide code for the D8 port, and you have been assigned as a maintainer.

Please make sure that the code remains SIMPLE and therefore MAINTAINABLE. Resist the urge to overcomplicate things. Do not add unnecessary features. Be a responsible maintainer.

kbahey’s picture

Dipak,

What is the status of your code? There is a -dev release, but no stable release for two weeks.

Hamad Ghani contacted me that he has working code.

I don't want to have two developers working separately, competing against each other for who gets the port out first ...etc. Both of you have to coordinate with each other, and work together, not separately.

Find a way to work together please.

mustanggb’s picture

Category: Task » Plan
jacov’s picture

Priority: Normal » Major

Hi, any progress on this?

i hear people shouting: "we want 'delete_all', we want 'delete_all', we want 'delete_all' "
;-)

thanks so much for this great effort, rewards in the world to come. G-D bless.

manuel.adan’s picture

Status: Active » Needs work

There is an alpha release, updating the issue status.

manuel.adan’s picture

Status: Needs work » Needs review
dipakmdhrm’s picture

Status: Needs review » Fixed
mmjvb’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

avpaderno’s picture

Status: Closed (fixed) » Fixed
Issue tags: -D8 upgrade path

I am giving credit to the users who participated in this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.