Commands for Bulletin Board
You can use the command line to perform the following actions on Bulletin Board:
- Delete expired topics in bulk
- Delete all topics that have not been updated since the specified date
Deleting Expired Topics in Bulk
Deletes expired topics.
Command
delete_bulletin_over.csp
Parameters
Parameters | Required item | Description |
---|---|---|
exec | Deletes the data. If omitted, the number of topics to be deleted displayed. Data are not deleted. |
|
max_count | The input type of this argument is an integer. Specify the maximum number of topics to delete. To use this argument, you must use exec. |
|
max_duration | The input type of this argument is an integer. Specify the maximum amount of time to perform the deletion process in minutes. If the deletion process continues after the specified period of time, the process ends. To use this argument, you must use exec.
|
|
help | Displays help for this command. |
Execution Example
Assuming the example setting below, the command usage is as follows:
- Maximum number of topics to delete: 10000
On Windows:
.\grn.exe -C -q code\command\delete_bulletin_over.csp exec max_count=10000
On Linux:
./grn.cgi -C -q code/command/delete_bulletin_over.csp exec max_count=10000
Deleting Topics That Have Not Been Updated in Bulk
Deletes all topics that have not been updated since the specified date.
When you delete a topic, the notifications and attachments for the topic are also deleted.
Command
delete_bulletins.csp
Parameters
Parameters | Required item | Description |
---|---|---|
exec | Deletes the data. If omitted, the number of topics to be deleted displayed. Data are not deleted. |
|
before | The input type of this argument is a string (one line). Type YYYY-MM-DD. Specify the date that the data to delete based on. Topics last updated before the specified date are deleted. |
|
max_count | The input type of this argument is an integer. Specify the maximum number of topics to delete. To use this argument, you must use exec. |
|
max_duration | The input type of this argument is an integer. Specify the maximum amount of time to perform the deletion process in minutes. If the deletion process continues after the specified period of time, the process ends. To use this argument, you must use exec.
|
|
help | Displays help for this command. |
Execution Example
Assuming the example setting below, the command usage is as follows:
- Delete data before: May 30, 2011
- The maximum duration of the deletion process: 3 hours (180 minutes)
On Windows:
.\grn.exe -C -q code\command\delete_bulletins.csp exec before=2011-05-30 max_duration=180
On Linux:
./grn.cgi -C -q code/command/delete_bulletins.csp exec before=2011-05-30 max_duration=180