Follow

It may not be helpful, I have run the following script of PHP on CRON regularly (Only once every 30 minutes). 

@sbjohnsrpi Your thoughts are very interesting.
I've deleted all my posts with the PHP script below.
(I referred to docs.joinmastodon.org/client/i .)
<!-- pawoo.php from here -->
<?php $atoken = "--header 'Authorization: Bearer ACCESS_TOKEN'";
$myhost= 'pawoo.net'; $epoint='/api/v1/accounts/110167/statuses';
$queryo = "curl -X POST -sS ${myhost}${epoint} -d 'limit=30' ${atoken}";
$jarray = json_decode(`$queryo`, JSON_OBJECT_AS_ARRAY);
foreach ($jarray as $key => $value) {
$epoint_='/api/v1/statuses/'. $value['id'];
$queryo = "curl --request DELETE -sS ${myhost}${epoint_} ${atoken}";
var_dump(`$queryo`);
}
?><!-- pawoo.php to here -->
(Sorry for the dirty code!)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.